alibaba / alibaba/AndFix

java.lang.IllegalAccessError: Method 'void Android 5.0 不兼容?

Open
#146 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

少部分5.0和5.1机型报错,4.x没有报错,是兼容问题
java.lang.IllegalAccessError: Method 'void com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF.getOrderTrackInfo()' is inaccessible to class 'com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF' (declaration of 'com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF' appears in /data/data/com.dwl.uh/files/apatch/1.5_45_20160303_cancleorderTest_07.apatch)
at com.dwl.uh.ui.activity.usercenter.OrderDetailActivity_CF.getOrderDetailSuccess(OrderDetailActivity.java:526)
at com.dwl.uh.manager.presenter.OrderDetailPresenter$1.onSuccess(OrderDetailPresenter.java:46)
at com.dwl.uh.manager.model.impl.OrderDetailModelImpl$1.onResponse(OrderDetailModelImpl.java:22)
at com.dwl.uh.manager.model.impl.OrderDetailModelImpl$1.onResponse(OrderDetailModelImpl.java:1)
at com.dwl.uh.net.GsonRequest.deliverResponse(GsonRequest.java:93)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5275)
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:910)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the stack trace at OrderDetailActivity.java:526 and the referenced OrderDetailActivity_CF.getOrderTrackInfo() call, then compare behavior on the reported Android 5.0 and 5.1 devices with 4.x. Reproduce the IllegalAccessError using the referenced .apatch file; done means the affected versions no longer produce this failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.