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

安装插件后,打开插件activity会出现class not found #450

Open
ldw5821cn opened this issue Jan 9, 2020 · 1 comment
Open

安装插件后,打开插件activity会出现class not found #450

ldw5821cn opened this issue Jan 9, 2020 · 1 comment

Comments

@ldw5821cn
Copy link

ldw5821cn commented Jan 9, 2020

排查源码 PluginCallback 的handleLaunchActivity 里有这样的一段逻辑:,发现在替换intent的时候,targetComponentName.getClassName().startsWith("") 这个条件一直为true的情况,因为原来intent里有ClassName,判断startsWith("")一定为true,会执行下面的逻辑
targetIntent.setClassName(targetComponentName.getPackageName(), targetComponentName.getPackageName() + targetComponentName.getClassName());
这样intent里的目标类名会多加一层packageName,导致class 加载失败。

@ldw5821cn ldw5821cn changed the title 安装插件后,打开插件activity会出现class not 安装插件后,打开插件activity会出现class not found Jan 9, 2020
@apsonLi
Copy link

apsonLi commented May 8, 2021

感谢你提出的 issue ,根据你的说明我成功解决了问题,现在可以正常跳转插件act

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