报错
Failed to create oat file
System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.multidex.MultiDex" on path: DexPathList
详细报错日志如下:
06-26 14:27:55.658 32075-32075/com.ijuyou.qipaoxian W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.ijuyou.qipaoxian-2@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status
06-26 14:27:55.745 32153-32153/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm64/data@app@com.ijuyou.qipaoxian-2@split_lib_slice_9_apk.apk@classes.dex: Permission denied
06-26 14:27:55.745 32153-32153/? I/dex2oat: dex2oat took 600.416us (threads: 4)
06-26 14:27:55.747 32075-32075/com.ijuyou.qipaoxian W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --debuggable --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=generic --instruction-set-features=default --dex-file=/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.ijuyou.qipaoxian-2@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: java.lang.ClassNotFoundException: androidx.multidex.MultiDex
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.Class.classForName(Native Method)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.Class.forName(Class.java:324)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.Class.forName(Class.java:285)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at io.dcloud.application.DCloudApplication.a(DCloudApplication.java:82)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at io.dcloud.application.DCloudApplication.attachBaseContext(DCloudApplication.java:62)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.Application.attach(Application.java:187)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.Instrumentation.newApplication(Instrumentation.java:998)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.Instrumentation.newApplication(Instrumentation.java:982)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.LoadedApk.makeApplication(LoadedApk.java:619)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4766)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.ActivityThread.access$1600(ActivityThread.java:165)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.os.Looper.loop(Looper.java:150)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5621)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.reflect.Method.invoke(Native Method)
06-26 14:27:55.796 32075-32075/com.ijuyou.qipaoxian W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.multidex.MultiDex" on path: DexPathList[[zip file "/data/app/com.ijuyou.qipaoxian-2/base.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.ijuyou.qipaoxian-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.ijuyou.qipaoxian-2/lib/arm64, /data/app/com.ijuyou.qipaoxian-2/base.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.ijuyou.qipaoxian-2/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: ... 18 more
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: Suppressed: java.lang.ClassNotFoundException: androidx.multidex.MultiDex
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.Class.classForName(Native Method)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
06-26 14:27:55.797 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
06-26 14:27:55.798 32075-32075/com.ijuyou.qipaoxian W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
06-26 14:27:55.798 32075-32075/com.ijuyou.qipaoxian W/System.err: ... 19 more
06-26 14:27:55.798 32075-32075/com.ijuyou.qipaoxian W/System.err: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
06-26 14:27:55.865 32075-32075/com.ijuyou.qipaoxian I/InstantRun: starting instant run server: is main process
06-26 14:27:55.964 32075-32075/com.ijuyou.qipaoxian E/platform: Exception io.dcloud.feature.weex.WeexInstanceMgr initWeexEnv
2***@qq.com (作者)
解决了的
2019-11-26 19:09
IM柳暗花明
回复 2***@qq.com: 大哥,怎么解决的啊?分享一下成果啊?
2019-12-03 14:29
1***@qq.com
请大佬给个解决方案呀,万分感谢
2020-04-23 20:16
g***@sina.com
回复 2***@qq.com: 你好 能给个你的解决方案吗
2020-04-24 12:55