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. Previous versions of the Android
Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The
following direct local .aar file dependencies of the :library_module project caused this error:
______.aar
解决方案如下:
新建Module

新建完后把里面所有的文件除了自带的Gradle删除

然后下一步把Gradle里面的内容清空

这篇博客介绍了在Android开发中遇到的直接依赖本地AAR文件导致的构建错误,提供了解决方案:创建新的Module来管理这些依赖。详细步骤包括删除新建Module中的默认Gradle文件,将AAR文件导入,配置Gradle文件,并在主项目中正确引用新建的Module。

5060

被折叠的 条评论
为什么被折叠?



