https://guides.gradle.org/building-android-apps/のGradleチュートリアルに従っています。この部分の最後はRun a Build Scanです。私はそれが私に尋ねたのと全く同じことをやっている。 "Hello:(14、0)" org.gradle.api.Projectタイプのルートプロジェクト 'HelloWorldGradle'の不明なプロパティ 'com'を取得できませんでした。ここ AndroidでGradleのスキャンが動作しない
は私のトップレベルのビルドファイル(:HelloWorldGradle)build.gradle(プロジェクト):ある// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2' }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.4.0-alpha7'
classpath 'com.gradle:build-scan-plugin:1.7.1'
}
}
apply plugin: com.gradle.build-scan
buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}