【发布时间】:2018-05-16 16:11:02
【问题描述】:
我正在使用 Kotlin 构建基本应用程序。我添加了一个列表视图,它工作正常。但是当我尝试实现谷歌地图时,我在 android studio 3.1 中遇到了以下错误。
The build scan was not published due to a configuration problem.
The Gradle Cloud Services license agreement has not been agreed to.
To agree to the license, include the following in your root project's configuration:
buildScan { licenseAgreementUrl = 'https://gradle.com/terms-of-service'; licenseAgree = 'yes' }
For more information, please see https://gradle.com/scans/help/plugin-license.
Alternatively, if you are using Gradle Enterprise, specify the server location.
For more information, please see https://gradle.com/scans/help/plugin-enterprise-config.
9:27:52 PM: Task execution finished 'signingReport'.
我已经尝试了网上所有可用的解决方案,例如:
buildScan {
licenseAgreementUrl = "https://gradle.com/terms-of-service"
licenseAgree = "yes"
}
我还添加了插件:apply plugin: com.gradle.build-scan
但没有运气。
【问题讨论】:
-
有两个单独的“build.gradle”文件。这个是指项目级别的 build.gradle,而不是你的模块 app/build.gradle。确保您已将其添加到正确的位置。
-
是的,我在这两个文件中都试过了,但同样的错误
标签: android google-maps kotlin