嗨,我得到错误2天我测试了很多gradle版本i测试gradle 3.3.0和3.4.0并在gradle-warper.properties更改了很多时间我改变了以上行
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-all.zip
我的android studio版本2.3最新版本,完全更新了sdk
现在我每次都会收到此错误
gradle 3.4.0的错误代码
Error:Could not find com.android.tools.build:gradle:3.4.0.
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
https://repo1.maven.org/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
https://repo1.maven.org/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
https://jitpack.io/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
https://jitpack.io/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
Required by:
project :
gradle 3.3.0的错误代码
Error:Could not find com.android.tools.build:gradle:3.4.0.
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
https://repo1.maven.org/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
https://repo1.maven.org/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
https://jitpack.io/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom
https://jitpack.io/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.jar
Required by:
project :
我检查这个位置
C:\Program Files\Android\Android Studio\gradle\m2repository\com\android\tools\build\gradle
什么都没有!
我需要gradle 3.3或gradle 3.4
谢谢,如果有解决方案告诉我