alibaba / alibaba/AndFix

5.0设备上无法运行demo

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

Description

demo在4.4的手机上能运行.但是在两部5.0的手机上,都出现了同样错误:
java.lang.IllegalArgumentException: Expected receiver of type com.raymond.demo.andfixdemo.MainActivity_CF, but got com.raymond.demo.andfixdemo.MainActivity

0 = {StackTraceElement@3662} "java.lang.reflect.Method.invoke(Native Method)"
1 = {StackTraceElement@3663} "java.lang.reflect.Method.invoke(Method.java:372)"
2 = {StackTraceElement@3664} "android.view.View$1.onClick(View.java:4007)"
3 = {StackTraceElement@3665} "android.view.View.performClick(View.java:4761)"
4 = {StackTraceElement@3666} "android.view.View$PerformClick.run(View.java:19767)"
5 = {StackTraceElement@3667} "android.os.Handler.handleCallback(Handler.java:739)"
6 = {StackTraceElement@3668} "android.os.Handler.dispatchMessage(Handler.java:95)"
7 = {StackTraceElement@3669} "android.os.Looper.loop(Looper.java:135)"
8 = {StackTraceElement@3670} "android.app.ActivityThread.main(ActivityThread.java:5310)"
9 = {StackTraceElement@3671} "java.lang.reflect.Method.invoke(Native Method)"
10 = {StackTraceElement@3672} "java.lang.reflect.Method.invoke(Method.java:372)"
11 = {StackTraceElement@3673} "com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)"
12 = {StackTraceElement@3674} "com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the demo on an Android 5.0 device and tracing the click path shown in the stack trace, focusing on MainActivity and MainActivity_CF. Compare the behavior with Android 4.4 and determine what must change so the demo runs without the receiver-type exception on both versions.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.