-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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嵌套Fragment崩溃 #292
Comments
请先看下是不是满足崩溃中所说的三种情况,类名存在(且未被混淆)、声明为Public的,而且得有一个Public的构造函数。 此外,还可以参考下Sample中的Fragment的用法 |
以上条件都不满足,并且插件独立运行不崩溃,Sample使用方法是宿主Activity加载插件Fragment,而我的需求是插件中的Activity直接使用插件中的Fragment |
这个应该是因为插件中不能解析xml中<fragment这个tag导致的,在框架没有解决之前可以先试试new fragment然后add进去 |
@kevinfen9 嗯,这个提议很好,看来你们助手应该也已经遇到了。 |
我通过动态方式添加fragment,使用add的方式动态添加,宿主是FragmentActivity动态添加的插件中的fragment,启动起来没有问题,但是在fragment跳转到新的插件以后,点击返回,程序就崩溃了,也是上面一样的错误make sure class name exists, is public, and has an empty constructor that is public,感觉好奇怪 |
当插件中的Activity使用Fragment的时候崩溃找不到相应的Fragment
RePlugin version:2.1.7
Android compile SDK version:2.1.7
Android ROM:原生6.0.1
The text was updated successfully, but these errors were encountered: