kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
MIT License
3.13k stars 621 forks source link

java.lang.NoClassDefFoundError: Failed resolution of:....R$layout; #362

Open w525721508 opened 2 years ago

w525721508 commented 2 years ago

Describe the issue A clear and detailed description of what the issue is.

Build Environment

大佬请教个问题,目前在使用fat-aar进行打包,因为我引用了其他AAR,其他AAR里有Layout资源,现在我打出的AAR里已经包含了其他的AAR但是每次调用其他AAR的页面相关内容时就会报错

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/.../.../.../R$layout;

我理解是找不到R这个类文件,是不是合并AAR 的R文件的时候出现了错误?麻烦大佬帮解答下