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

无法实例化壳子 #1228

Closed
qczgwxg opened this issue Aug 19, 2023 · 3 comments
Closed

无法实例化壳子 #1228

qczgwxg opened this issue Aug 19, 2023 · 3 comments
Labels
因陈旧关闭 未解决但因长时间无人跟进而关闭

Comments

@qczgwxg
Copy link

qczgwxg commented Aug 19, 2023

Process: com.tencent.shadow.sample.host, PID: 12981
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.tencent.shadow.sample.host/com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity}: java.lang.ClassNotFoundException: Didn't find class "com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity" on path: DexPathList[[zip file "/data/app/com.tencent.shadow.sample.host-2/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.shadow.sample.host-2/lib/x86, /system/lib, /vendor/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2759)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6190)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity" on path: DexPathList[[zip file "/data/app/com.tencent.shadow.sample.host-2/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.shadow.sample.host-2/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2571)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2759) 
at android.app.ActivityThread.-wrap12(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:154) 
at android.app.ActivityThread.main(ActivityThread.java:6190) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782) 

Tasks

No tasks being tracked yet.
@jayyuz
Copy link
Contributor

jayyuz commented Aug 26, 2023

展示下你启动插件的代码,是不是因为没有同步,导致classloader异常了呢?

@wh963572516
Copy link

我也遇到了,怎麽解決

@wh963572516
Copy link

Process: com.tencent.shadow.sample.host, PID: 12981 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.tencent.shadow.sample.host/com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity}: java.lang.ClassNotFoundException: Didn't find class "com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity" on path: DexPathList[[zip file "/data/app/com.tencent.shadow.sample.host-2/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.shadow.sample.host-2/lib/x86, /system/lib, /vendor/lib]] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2581) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2759) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6190) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity" on path: DexPathList[[zip file "/data/app/com.tencent.shadow.sample.host-2/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.shadow.sample.host-2/lib/x86, /system/lib, /vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.app.Instrumentation.newActivity(Instrumentation.java:1078) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2571) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2759)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1482)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6190)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782) 

Tasks

Beta
Give feedback
No tasks being tracked yet.

  1. [ ]

    Options

      * Convert to issue
      * Toggle completion
      * Rename
      * Remove
    

请参考这个,然后就可以了,在插件启动的时候,换一种start方式
#505

@shifujun shifujun added the 因陈旧关闭 未解决但因长时间无人跟进而关闭 label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
因陈旧关闭 未解决但因长时间无人跟进而关闭
Projects
None yet
Development

No branches or pull requests

4 participants