Direct local .aar file dependencies are not supported when building an AAR.

 

* What went wrong:
Execution failed for task ':app:bundleDebugAar'.
> 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 :app project caused this error: D:\workcode\android\test\app\libs\xxxx.aar
 

 

 

 

这个BUG困扰了我一上午,百度也没有相关的解决方法。我已经解决特此记录。

这种引入就会报上面这个错误。

---------------------------------------------------------------------重点来了-------------------------------------------------------------------------------------

 

只需要把implementation改为provided   即可解决问题。是不是很简单。同时你要把这个aar还有你生成的AAR文件都提供个开发方。不然会报错。

 

 

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页