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

ShrinkR把R文件统一成一个以后,没有替换module里面的R引用 #149

Open
axel8888 opened this issue Sep 23, 2022 · 2 comments

Comments

@axel8888
Copy link

主app里的R引用包都被替换了,但是module里面的都还是引用module的R,导致找不到资源崩溃

@TellH
Copy link
Collaborator

TellH commented Sep 29, 2022

module的R不会打到aar里的,在app打包时统一生成的。ShrinkR会遍历所有R的引用,并替换。找不到资源崩溃,可以先把堆栈发出来看看。

@hfgerr
Copy link

hfgerr commented Dec 1, 2023

全量编译,开启bytex 的shrinkR 没问题,但是
增量编译时,library project使用的R文件没有内联,会导致Caused by: java.lang.ClassNotFoundException: Didn't find class "com.xxx.xxx.xxx.R$string"

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

3 participants