Meituan-Dianping / Meituan-Dianping/Robust
使用 gradle 修复onCreate、onPause等方法死循环
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.5k
- Forks
- 806
- PR merge metrics
- No merged PRs in 30d
Description
使用 androidx 库和robust 0.4.90,Modify androidx.appcompat.app.AppCompatActivity方法时报错
异常类型:SuperNotCalledException: Activity
手机型号:Meizu m3x(型号无关
手机系统版本:Android 6.0 (版本无关
Robust版本:0.4.90
Gradle版本:3.4.1
系统:Mac
堆栈/日志:
Process: com.example, PID: 8839
android.util.SuperNotCalledException: Activity {com.example/com.example.activity.market.DetailsAttentionActivity} did not call through to super.onCreate()
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2697)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2812)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1605)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:191)
at android.app.ActivityThread.main(ActivityThread.java:6022)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:821)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported failure with AndroidX AppCompatActivity, Robust 0.4.90, and Gradle 3.4.1, then inspect how Robust handles lifecycle methods such as onCreate and onPause. Use the provided SuperNotCalledException stack trace as the failure signal; done means the lifecycle no longer loops or reports that super.onCreate was not called.
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