Direct local .aar file dependencies are not supported when building an AAR.问题解决
问题如图:Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would
·
问题如图:
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR.
产生原因:
依赖中有aar,打包也是aar
解决办法:
将依赖的aar,从implementation 方式 改为 compileOnly,
也有说将aar 载入为Module,可惜,新版的android取消了这一功能,至于别的方法都是删除了此依赖,基本无效
更多推荐
已为社区贡献2条内容
所有评论(0)