赞
踩
Android 14模拟器,运行项目,第一次安装不会崩溃,当修改代码之后点击运行就会闪退。
- Attempt to load writable dex file: /data/data/com.kt.ktmddemo/code_cache/.overlay/base.apk/classes3.dex
- FATAL EXCEPTION: main
- Process: com.kt.ktmddemo, PID: 22042
- java.lang.SecurityException: Writable dex file '/data/data/com.kt.ktmddemo/code_cache/.overlay/base.apk/classes3.dex' is not allowed.
- at dalvik.system.DexFile.openDexFileNative(Native Method)
- at dalvik.system.DexFile.openDexFile(DexFile.java:406)
- at dalvik.system.DexFile.<init>(DexFile.java:128)
- at dalvik.system.DexFile.<init>(DexFile.java:101)
- at dalvik.system.DexPathList.loadDexFile(DexPathList.java:438)
- at dalvik.system.DexPathList.makeDexElements(DexPathList.java:387)
- at dalvik.system.DexPathList.<init>(DexPathList.java:166)
- at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:160)
- at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:130)
- at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:146)
- at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:93)
- at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:134)
- at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:126)
- at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:61)
- at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:1034)
- at android.app.LoadedApk.getClassLoader(LoadedApk.java:1126)
- at android.app.LoadedApk.getResources(LoadedApk.java:1374)
- at android.app.ContextImpl.createAppContext(ContextImpl.java:3324)
- at android.app.ContextImpl.createAppContext(ContextImpl.java:3316)
- at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6879)
- at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
- at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2236)
- at android.os.Handler.dispatchMessage(Handler.java:106)
- at android.os.Looper.loopOnce(Looper.java:205)
- at android.os.Looper.loop(Looper.java:294)
- at android.app.ActivityThread.main(ActivityThread.java:8177)
- at java.lang.reflect.Method.invoke(Native Method)
- at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
- at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
- ---------------------------- PROCESS ENDED (22042) for package com.kt.ktmddemo ----------------------------
- Could not remove dir '/data/data/com.kt.ktmddemo/code_cache/.ll/': No such file or directory
xml文件不需要卸载重重装。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。