gpt4 book ai didi

Android Studio 错误 : build scan was not published

转载 作者:行者123 更新时间:2023-12-04 15:29:56 25 4
gpt4 key购买 nike

我正在 Kotlin 中构建基本应用程序。我添加了一个 ListView ,它工作正常。但是当我尝试实现谷歌地图时,我在 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 文件中删除以下代码并再次同步您的 Gradle。一切都会得到解决。

apply plugin: 'com.gradle.build-scan'

buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
}

关于Android Studio 错误 : build scan was not published,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50375559/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com