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)
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)