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 not be packaged in the resulting AAR.

Direct local .aar file dependencies are not supported when building an AAR.问题解决_第1张图片

产生原因:

依赖中有aar,打包也是aar

解决办法:

将依赖的aar,从implementation 方式 改为 compileOnly,

也有说将aar 载入为Module,可惜,新版的android取消了这一功能,至于别的方法都是删除了此依赖,基本无效
在这里插入图片描述

你可能感兴趣的:(工具,安卓,java,android,aar,aar打包)