最佳答案
我们最近升级到了 Android Gradle Plugin 4.0.0-beta03。我们现在在构建库模块时看到了这个错误
$ ./gradlew library_module:assemble Execution failed for task ':library_module: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 :library_module project caused this error: ______.aar
我可以看到这是几个月前的 加入 AGP。但他们没有提供进一步的信息为什么。
那么。