alibaba / alibaba/AndFix

安卓5.1打补丁报错

Open
#362 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

FATAL EXCEPTION: main
Process: com.hengyi.baseandroiddemo, PID: 11765
java.lang.NoSuchMethodError: No super method onCreate(Landroid/os/Bundle;)V in class Lcom/hengyi/baseandroiddemo/BaseActivity; or its super classes (declaration of 'com.hengyi.baseandroiddemo.BaseActivity' appears in /data/app/com.hengyi.baseandroiddemo-1/base.apk)
at com.hengyi.baseandroiddemo.PatchActivity_CF.onCreate(PatchActivity.java:17)
at android.app.Activity.performCreate(Activity.java:6200)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2661)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2794)
at android.app.ActivityThread.access$900(ActivityThread.java:186)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1597)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5905)
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:1127)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:893)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with PatchActivity.java at line 17 and inspect the call involving BaseActivity that fails on Android 5.1. Reproduce the reported NoSuchMethodError on that Android version and trace the patch flow. Done means the application launches without this exception during patching.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
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.