我有一个在4.2和4.4等特定android api级别崩溃的应用程序。
我的最低级别是16,目标sdk是24。
这是错误logcat:
10-14 22:37:49.600 4519-4519/com.encodezero.projectred E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.android.tools.fd.runtime.AppInfo
at com.android.tools.fd.runtime.BootstrapApplication.<init>(BootstrapApplication.java:119)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newApplication(Instrumentation.java:982)
at android.app.Instrumentation.newApplication(Instrumentation.java:967)
at android.app.LoadedApk.makeApplication(LoadedApk.java:496)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4181)
at android.app.ActivityThread.access$1300(ActivityThread.java:136)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4802)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:813)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:580)
at dalvik.system.NativeStart.main(Native Method)
如何消除这种错误?
最佳答案
您可能遇到方法限制错误。有关配置Multidex的更多信息,请参见here。
关于android - 应用程式在特定的Android版本中当机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40048568/