I am building basic app in Kotlin. I have added a listview and it was working fine. but when I try to implement google map then I got following error in 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'.
I have tried every available solution on the net like:
buildScan {
licenseAgreementUrl = "https://gradle.com/terms-of-service"
licenseAgree = "yes"
}
I have also added the plugin: apply plugin: com.gradle.build-scan
but no luck.
Just remove the following code from build.gradle file and Sync your Gradle again. Everything will be resolved.
apply plugin: 'com.gradle.build-scan'
buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
}
The accepted answer in this other question works. You have to test the existence of buildScan
task.
if (hasProperty('buildScan')) {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With