fat-aar-android icon indicating copy to clipboard operation
fat-aar-android copied to clipboard

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

Open w525721508 opened this issue 3 years ago • 0 comments

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

Build Environment

  • Operating System: [e.g. MacOS]
  • Gradle Plugin Version: [e.g. 3.0.1]
  • Gradle Version: [e.g. 4.10.1]
  • Fat-aar Version: [e.g. 1.2.7]

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

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

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

w525721508 avatar Jan 14 '22 11:01 w525721508