我正在构建我的第一个flutter应用程序,而Gradle遇到了问题。
我确实进行了搜索,发现了一些答案,例如:
Error : > Could not find com.android.tools.build:gradle:3.2.1.
Searched in the following locations:
dl.google.com/dl/android/maven2/com/android/tools/build/gradle/…
dl.google.com/dl/android/maven2/com/android/tools/build/gradle/…
jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/…
jcenter.bintray.com/com/android/tools/build/gradle/3.2.1/…
Gradle代码:
buildscript {
repositories { google() jcenter() }
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' }
}
allprojects {
repositories { google() jcenter() } }
rootProject.buildDir = '../build'
subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" }
subprojects { project.evaluationDependsOn(':app') }
task clean(type: Delete) { delete rootProject.buildDir }
}