我在android studio中有问题要运行新的flutter应用程序:gradle

时间:2019-06-18 04:23:12

标签: android-studio flutter

我正在构建我的第一个flutter应用程序,而Gradle遇到了问题。

我确实进行了搜索,发现了一些答案,例如:

  • 互联网连接
  • 将google()添加到存储库
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 }
}

0 个答案:

没有答案