0.50 6.0 IllegalAccessError
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
按照教程一步一步来的,中间并没有出问题,除了最后是使用adb push out.apatch的
java.lang.IllegalAccessError: Method 'void android.support.v7.app.AppCompatActivity.onCreate(android.os.Bundle)' is inaccessible to class 'njy.lsh.cc.testhotfix2.MainActivity_CF' (declaration of 'njy.lsh.cc.testhotfix2.MainActivity_CF' appears in /data/user/0/njy.lsh.cc.testhotfix2/files/apatch/lsh.apatch)
at njy.lsh.cc.testhotfix2.MainActivity_CF.onCreate(MainActivity.java:12)
at android.app.Activity.performCreate(Activity.java:6301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2530)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1499)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5765)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the tutorial flow, including the reported `adb push out.apatch` step, and inspect `MainActivity.java:12` where the IllegalAccessError occurs. Compare the generated `lsh.apatch` with the app's Android support-library setup and verify whether the same stack trace persists after following the documented steps. Done means the tutorial flow no longer produces this access error.
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
- 25/100