小米4c(miui7)上报java.lang.IllegalArgumentException错误
- Dominant language
- C++
- Stars
- 7k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
错误信息如下:
SUPPORTED_64_BIT_ABIS=[Ljava.lang.String;@198192c4
versionCode=1
BOARD=msm8992
BOOTLOADER=unknown
TYPE=user
ID=LMY47V
TIME=1447278703000
BRAND=Xiaomi
TAG=Build
SERIAL=d7b33852
HARDWARE=qcom
SUPPORTED_ABIS=[Ljava.lang.String;@1e7b65ad
CPU_ABI=armeabi-v7a
RADIO=unknown
IS_DEBUGGABLE=true
MANUFACTURER=Xiaomi
SUPPORTED_32_BIT_ABIS=[Ljava.lang.String;@5f479d7
TAGS=release-keys
CPU_ABI2=armeabi
UNKNOWN=unknown
USER=builder
FINGERPRINT=Xiaomi/libra/libra:5.1.1/LMY47V/5.11.12:user/release-keys
HOST=zc-miui-ota-bd49.bj
PRODUCT=libra
versionName=1.0
DISPLAY=LMY47V
MODEL=Mi-4c
DEVICE=libra
java.lang.IllegalArgumentException: Expected receiver of type com.raymond.demo.andfixdemo.MainActivity_CF, but got com.raymond.demo.andfixdemo.MainActivity
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at android.view.View$1.onClick(View.java:4023)
at android.view.View.performClick(View.java:4788)
at android.view.View$PerformClick.run(View.java:19911)
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 by reproducing the reported crash on the Xiaomi Mi 4c with MIUI 7, then inspect the MainActivity and MainActivity_CF references shown in the stack trace. Compare the View.onClick reflection path with AndFix patching behavior; done means identifying the cause of the receiver-type mismatch and confirming a fix or a clearly documented limitation.
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