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

使用Android Studio gradle build tools 3.6以上安装到手机上打开崩溃找不到R$drawable #75

Open
cocowobo opened this issue Apr 8, 2020 · 1 comment

Comments

@cocowobo
Copy link

cocowobo commented Apr 8, 2020

Caused by: java.lang.ClassNotFoundException: Didn't find class "tech.linjiang.pandora.core.R$drawable"

当升级到 Android Studio gradle build tools 3.6 直接运行到手机上,无法启动,
此类错误在realm的issues中也找到类似的了,人家已经解决了,
参考连接:realm/realm-java#6531
参考连接:https://issuetracker.google.com/issues/130965921#comment14

@whataa
Copy link
Owner

whataa commented Apr 9, 2020

你好,谢谢指出。不过我这边修改为 gradle:5.6.4AGP: 3.6.2 后编译的 apk 没有出现这个问题,而且结合贴出的 参考链接 的说法,看日志输出 R.jar 也有被正确处理到。

请问你使用的 gradleAGP 的具体版本是多少呢?或者会不会是项目里其它三方 transform-plugin 引起的,只要有一个 plugin 没有正确处理,生成的 apk 就会出问题。

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