热修复第三方库,需要的代理applicaiton,无法使用
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the stack trace and inspect CodeLocatorProvider.java at line 22, where attachInfo causes the ContextImpl-to-Application cast failure. Trace how the provider receives its context and identify the expected behavior; done means the third-party library no longer crashes during provider installation.
Written by the indexing model from the issue text.
Description
java.lang.RuntimeException: Unable to get provider com.bytedance.tools.codelocator.CodeLocatorProvider: java.lang.ClassCastException: android.app.ContextImpl cannot be cast to android.app.Application
at android.app.ActivityThread.installProvider(ActivityThread.java:8383)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7889)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7576)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2428)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:368)
at android.app.ActivityThread.main(ActivityThread.java:8839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: java.lang.ClassCastException: android.app.ContextImpl cannot be cast to android.app.Application
at com.bytedance.tools.codelocator.CodeLocatorProvider.attachInfo(CodeLocatorProvider.java:22)
at android.app.ActivityThread.installProvider(ActivityThread.java:8378)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7889)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7576)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2428)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:368)
at android.app.ActivityThread.main(ActivityThread.java:8839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 182
- PR merge metrics
- No merged PRs in 30d
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.
More from bytedance/CodeLocator
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
bytedance/CodeLocator#101 ·
-
能否支持compose? Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
bytedance/CodeLocator#99 ·
-
支持compose Open
Difficulty 4/5 3-5 days Newbie friendliness 42/100
bytedance/CodeLocator#96 · 1 comment · 4 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
bytedance/CodeLocator#94 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
bytedance/CodeLocator#93 ·
All issues in bytedance/CodeLocator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
checkstyle/test-configs#263 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·