简体   繁体   English

我们如何设置一个Android应用程序使其与Differentnet Android平台兼容?

[英]How can we set an android app to be compatible with differnet android platforms?

Recently I have developed an android application. 最近,我开发了一个android应用程序。 My first setting during creating the project in the first stages was for android with API level 21. Now I need to use this app in an older or newer version of Android. 在创建项目的第一阶段中,我的第一个设置是使用API​​级别21的android。现在,我需要在旧版本或新版本的Android中使用此应用。 But it is "Unfortunately has Stopped". 但这是“不幸的是已停止”。 I have also used the following solution, but it did not work: How do you build and deploy to an older version of android for ionic / cordova The API levels which I intend to use is between 17 and 23. What is your suggestion to meet this frustrating problem? 我也使用了以下解决方案,但没有用: 如何为ionic / cordova构建和部署到旧版本的android我打算使用的API级别在17到23之间。您有什么建议可以满足这个令人沮丧的问题? Thank you so much. 非常感谢。 The crash log is as follows: 崩溃日志如下:

unable to resolve virtual method 232: Landroid/app/Application;.registerOnProvideAssistDataListener (Landroid/app/Application$OnProvideAssistDataListener;)V
Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
unable to resolve interface method 16032: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z

I have same problem. 我有同样的问题。 I tried some solutions but I could not resolve it. 我尝试了一些解决方案,但无法解决。 Solutions were: 解决方案是:

  1. Android Studio E/dalvikvm: Could not find class... referenced from method Android Studio E / dalvikvm:找不到类...从方法引用
  2. Android studio many error: Could not find class 'android.XXX' Android Studio许多错误:找不到类“ android.XXX”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM