LuckSiege / LuckSiege/PictureSelector
java.lang.SecurityException
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Current use version?
#### 当前使用的版本是多少?
```
3.11.2
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
可以,必现
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
Process: com.luck.pictureselector, PID: 5770
java.lang.SecurityException: Writable dex file '/data/data/com.luck.pictureselector/code_cache/.overlay/base.apk/classes17.dex' is not
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:406)
at dalvik.system.DexFile.(DexFile.java:128)
at dalvik.system.DexFile.(DexFile.java:101)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:438)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:387)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:160)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:130)
at dalvik.system.PathClassLoader.(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:1049)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:1141)
at android.app.LoadedApk.getResources(LoadedApk.java:1400)
at android.app.ContextImpl.createAppContext(ContextImpl.java:3335)
at android.app.ContextImpl.createAppContext(ContextImpl.java:3327)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7345)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2382)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8759)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
```
Demo 第一次可以运行,再次用Android Studio Run 时就会报错,必须清理App 数据,才可以再次Run
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure in the demo by running it once and then using Android Studio Run again, as described in the issue. Start with the reported java.lang.SecurityException and the Android class-loading stack trace; done means the demo can be run repeatedly without clearing app data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100