alibaba / alibaba/AndFix

无法热修复,一直报错,程序无法运行

Open
#275 2 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

手机:Nexus5
环境:Android 4.4
报错:
11-03 11:40:53.620 16226-16226/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yang.tony.andfixdemo, PID: 16226
java.lang.NoSuchMethodError: Landroid/accessibilityservice/AccessibilityServiceInfo;.getId
at com.yang.tony.andfixdemo.MainActivity$1.onClick(MainActivity.java)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

这是什么原因啊,怎么会跟AccessibilityServiceInfo有关系呢

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crash on the stated Nexus 5 running Android 4.4, then inspect MainActivity$1.onClick, where the stack trace reports AccessibilityServiceInfo.getId. Trace why this call is reached during the hot-fix flow; done means the application runs without this NoSuchMethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.