Execution failed for task ':MusicService:bundleReleaseAar'. > 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 throw ing this error). The following direct local .aar file dependencies of the :MusicService project caused this error: D:\fb_105215\services\core\music\MusicService\libs\btt s-1.1.65.aar, D:\fb_105215\services\core\music\MusicService\libs\MusicSdk_4205fd6_1.1.5.106_release.aar, D:\fb_105215\services\core\music\MusicService\libs\tai-fullsdk-3 .1.0.1015-release.aar
时间: 2023-10-06 19:13:57 浏览: 313
Android studio4.1更新后出现的问题详解
5星 · 资源好评率100%
这个问题看起来是因为你的MusicService项目有一些本地的.aar文件依赖,而Android Gradle插件不支持将这些依赖打包到生成的AAR文件中。你需要将这些依赖转换为Maven库依赖或者将这些依赖的代码直接拷贝到你的项目中。你可以尝试将这些本地的.aar文件依赖从MusicService项目中移除,然后再次构建项目。
阅读全文