-
Notifications
You must be signed in to change notification settings - Fork 623
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
多个aar的合并打aar失败 #2
Comments
不能将libPackageName改为aarPackageName,改了后资源合并就失效了。 能否将修改之前的错误信息发出来,并告知下com.android.tools.build:gradle版本以及gradle的版本。 |
您这个插件,亲测两个library合成一个aar是没问题。。如果一个library的lib下有个Aaar,那么合并的时候,Aaar的资源id提示找不到符号
符号: 变量 layout_behavior
|
如果在一个library的lib下直接放一个aar会有问题,所有需要合并的aar都需要在lib-main中�embed,不然无法合并。建议参考example中的lib-aar-local方式引入本地的aar包,并且如果子library如果需要引用该aar的话可以以compileOnly的形式添加依赖。 |
打包失败后,修改里面的libPackageName为aarPackageName,$name = $ {aarPackageName}.R.${subclass}.${name};" << '\n'
sb << " public static $type
打包成功,但是在使用打出的fat-aar后,提示资源id找不到。
1.Aaar的activity_a的值是0x7f0f001c,Baar的activity_b的也是0x7f0f001c,合并后,main lib的activity_main的值是0x7f0f001c,,,activity_a的值是0x7f0f001d,,,,activity_b的也是0x7f0f001e,导致资源id找不到。。。
The text was updated successfully, but these errors were encountered: