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

采用非动态化方式集成插件化,宿主app集成阿里热修复SophixPatchTool,打补丁后宿主app执行loadPlugin报错 #1356

Open
dahaiChang opened this issue Dec 6, 2024 · 2 comments

Comments

@dahaiChang
Copy link

No description provided.

@dahaiChang dahaiChang changed the title 采用非动态化方式集成插件化,宿主app集成阿里热修复SophixPatchTool,打补丁后宿主app 采用非动态化方式集成插件化,宿主app集成阿里热修复SophixPatchTool,打补丁后宿主app执行loadPlugin报错 Dec 6, 2024
@dahaiChang
Copy link
Author

dahaiChang commented Dec 6, 2024

错误信息如下:
System.err: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: Cannot cast androidx.core.app.CoreComponentFactory to com.tencent.shadow.core.runtime.ShadowAppComponentFactory
at java.util.concurrent.FutureTask.report(FutureTask.java:123)
at java.util.concurrent.FutureTask.get(FutureTask.java:207)
at com.xxx.fragment.home.HomeFragment$1.doInBackground
Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: Cannot cast androidx.core.app.CoreComponentFactory to com.tencent.shadow.core.runtime.ShadowAppComponentFactory
at java.util.concurrent.FutureTask.report(FutureTask.java:123)
at java.util.concurrent.FutureTask.get(FutureTask.java:193)
at com.tencent.shadow.core.loader.blocs.LoadPluginBloc$loadPlugin$buildRunningPlugin$1.run(LoadPluginBloc.kt:127)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)

@shifujun
Copy link
Collaborator

shifujun commented Dec 6, 2024

你应该debug下CoreComponentFactory的transform过程。

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

2 participants