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

集成打开插件报错 cannot be cast to com.tencent.shadow.core.runtime.PluginActivity #77

Closed
godlikewangjun opened this issue Jul 30, 2019 · 7 comments

Comments

@godlikewangjun
Copy link

Unable to start activity ComponentInfo{com.wj.makebai/com.tencent.shadow.sample.runtime.PluginDefaultProxyActivity}: java.lang.RuntimeException: java.lang.ClassCastException: com.wj.makebai.plugin.MainActivity cannot be cast to com.tencent.shadow.core.runtime.PluginActivity

Caused by: java.lang.RuntimeException: java.lang.ClassCastException: com.wj.makebai.plugin.MainActivity cannot be cast to com.tencent.shadow.core.runtime.PluginActivity
at com.tencent.shadow.core.loader.delegates.ShadowActivityDelegate.onCreate(Unknown Source)
at com.tencent.shadow.core.runtime.container.PluginContainerActivity.onCreate(PluginContainerActivity.java:153)

@shifujun
Copy link
Collaborator

看看其他activity有没有被transform成shadowactivity。如果单单只有这一个activity没有转换成功,可能遇到什么bug了。但是你不把代码push上来,我们也分析不了。

@godlikewangjun
Copy link
Author

需要哪部分的代码

@godlikewangjun
Copy link
Author

和gradle版本有关系吗

@shifujun
Copy link
Collaborator

当然是所有代码啦。跟什么有关系都有可能,没有代码乱猜是没有意义的。

@godlikewangjun
Copy link
Author

MakeBai.zip
接口本地的哦,直接跳MainAcActivuty

@shifujun
Copy link
Collaborator

能不能不传附件呢?如果不是在Shadow工程上进行的修改,我可能就帮不了你了。如果是在Shadow工程上的修改,你直接push到你名下的仓库就好了。

@godlikewangjun
Copy link
Author

Shadow工程上改了 我看是对的,我重新导入就好了,不知道啥问题

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