Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化直接崩溃 #108

Open
2079541547 opened this issue Aug 26, 2024 · 3 comments
Open

初始化直接崩溃 #108

2079541547 opened this issue Aug 26, 2024 · 3 comments

Comments

@2079541547
Copy link

2024-08-26 12:33:07.217 10403-10403 AndroidRuntime com.example.plugin E FATAL EXCEPTION: main
Process: com.example.plugin:plugin, PID: 10403
java.lang.RuntimeException: Unable to instantiate application com.example.plugin.application package com.example.plugin: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1478)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1403)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7464)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2416)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at com.limpoxe.fairy.core.proxy.ProxyUtil.createProxy(ProxyUtil.java:17)
at com.limpoxe.fairy.core.proxy.systemservice.AndroidWidgetToast.installProxy(AndroidWidgetToast.java:34)
at com.limpoxe.fairy.core.PluginLoader.initLoader(PluginLoader.java:66)
at com.example.plugin.application.attachBaseContext(application.kt:32)
at android.app.Application.attach(Application.java:346)
at android.app.Instrumentation.newApplication(Instrumentation.java:1353)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1471)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1403) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7464) 
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2416) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loopOnce(Looper.java:232) 
at android.os.Looper.loop(Looper.java:317) 
at android.app.ActivityThread.main(ActivityThread.java:8705) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886) 

image

@2079541547
Copy link
Author

??我这是linux啊,而且实机测试也这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@2079541547 and others