一直报IllegalAccessError的错误,怎么解决呢
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
我的错误信息如下
java.lang.IllegalAccessError: Method 'void com.hecaifu.renhe.ui.user.PersonalDataActivity_CF.initView()' is inaccessible to class 'com.hecaifu.renhe.ui.user.PersonalDataActivity' (declaration of 'com.hecaifu.renhe.ui.user.PersonalDataActivity' appears in /data/data/com.hecaifu.renhe/files/instant-run/dex/slice-slice_9-classes.dex)
at com.hecaifu.renhe.ui.user.PersonalDataActivity.onCreate(PersonalDataActivity.java:111)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the stack trace at PersonalDataActivity.java:111 and compare the reported PersonalDataActivity_CF.initView() access with the Android Instant Run dex location. Reproduce the failure in the affected Android setup, then identify a confirmed cause and document a verifiable resolution for the IllegalAccessError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100