ByteX icon indicating copy to clipboard operation
ByteX copied to clipboard

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

Open axel8888 opened this issue 3 years ago • 2 comments

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

axel8888 avatar Sep 23 '22 09:09 axel8888

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

TellH avatar Sep 29 '22 03:09 TellH

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

hfgerr avatar Dec 01 '23 14:12 hfgerr