android - Unable to instantiate application? ClassNotFoundException
黄舟
黄舟 2017-04-17 13:53:31
0
1
580

bug收集工具收集到的bug:

01-01 01:47:46.674 30500 30500 D Proxy   : setHttpRequestCheckHandler
01-01 01:47:46.722 30500 30500 D AndroidRuntime: Shutting down VM
01-01 01:47:46.743 30500 30500 E AndroidRuntime: FATAL EXCEPTION: main
01-01 01:47:46.743 30500 30500 E AndroidRuntime: Process: com.xxxxxx.framework, PID: 30500
01-01 01:47:46.743 30500 30500 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.xxxxxx.framework.app.MyApplication: java.lang.ClassNotFoundException: Didn't find class "com.xxxxxx.framework.app.MyApplication" on path: DexPathList[[zip file "/system/app/xxxxxxFrameWork/xxxxxxFrameWork.apk"],nativeLibraryDirectories=[/system/app/xxxxxxFrameWork/lib/arm, /vendor/lib, /system/lib]]
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.LoadedApk.makeApplication(LoadedApk.java:569)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4787)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.ActivityThread.access$1500(ActivityThread.java:180)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1533)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:111)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.os.Looper.loop(Looper.java:194)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5592)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
01-01 01:47:46.743 30500 30500 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.xxxxxx.framework.app.MyApplication" on path: DexPathList[[zip file "/system/app/xxxxxxFrameWork/xxxxxxFrameWork.apk"],nativeLibraryDirectories=[/system/app/xxxxxxFrameWork/lib/arm, /vendor/lib, /system/lib]]
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.Instrumentation.newApplication(Instrumentation.java:985)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     at android.app.LoadedApk.makeApplication(LoadedApk.java:564)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     ... 10 more
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     Suppressed: java.io.IOException: Failed to open oat file from dex location '/system/app/xxxxxxFrameWork/xxxxxxFrameWork.apk'
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexFile.openDexFileNative(Native Method)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexFile.openDexFile(DexFile.java:295)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexFile.<init>(DexFile.java:80)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexFile.<init>(DexFile.java:59)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.DexPathList.<init>(DexPathList.java:109)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at android.app.LoadedApk.getClassLoader(LoadedApk.java:366)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at android.app.LoadedApk.makeApplication(LoadedApk.java:559)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         ... 10 more
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     Caused by: java.io.IOException: Failed to open oat file from /system/app/xxxxxxFrameWork/arm/xxxxxxFrameWork.odex (error Failed to open oat filename for reading: No such file or directory) (no dalvik_cache availible) and relocation failed.
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         ... 22 more
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     Caused by: java.io.IOException: 
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         ... 22 more
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     Caused by: java.io.IOException: Failed to remove obsolete file from /data/dalvik-cache/arm/system@app@xxxxxxFrameWork@xxxxxxFrameWork.apk@classes.dex when searching for dex file /system/app/xxxxxxFrameWork/xxxxxxFrameWork.apk: Permission denied
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         ... 22 more
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     Suppressed: java.lang.ClassNotFoundException: com.xxxxxx.framework.app.MyApplication
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at java.lang.Class.classForName(Native Method)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
01-01 01:47:46.743 30500 30500 E AndroidRuntime:         ... 13 more
01-01 01:47:46.743 30500 30500 E AndroidRuntime:     Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
01-01 01:47:46.816 30500 30500 I Process : Sending signal. PID: 30500 SIG: 9
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

全部回复(1)
Ty80

我也遇到了相同的问题,关闭odex优化就可以了,但是为什么会这样呀,有谁知道吗?

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板