当我按照建议将 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/