android - 无法在 gradle 文件中应用 'android-reporting'

标签 android android-studio android-gradle-plugin build.gradle gradle-plugin

当我按照建议将 apply plugin: 'android-reporting' 放入我的项目级 build.gradle 文件中时 here , gradle sync 抛出失败

Caused by: java.lang.IllegalArgumentException: Cannot add extension with name 'android', as there is an extension already registered with that name.

有人可以帮助解决这里可能发生的问题。我使用的是最新版本的 gradle 插件。

最佳答案

需要在根build.gradle的末尾应用

关于android - 无法在 gradle 文件中应用 'android-reporting',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53645213/

相关文章:

android - Gradle 不更新

android - 如何在android中使用renderscript使用smoothstep函数

android - 在 TextInputLayout 中更改单个字母或字母表的提示颜色

android - Sherlock Action Bar + map 插件如何配置?

android - Gradle构建卡在app:tranformDexArchiveWithDexMergerForDebug

android - 如何分析Android Gradle库的获取时间

Android 可点击 ListView

android - 在 Android Studio 中进行 gradle 构建时,如何将资源提取到资源目录中?

Android Studio 更新 SDK - 完成。没有安装任何东西

android - Gradle maven-publish 插件生成没有依赖项的 pom