2019年7月4日 星期四

ERROR: Could not find com.android.tools.build:gradle:3.4.1.

ERROR: Could not find com.android.tools.build:gradle:3.4.1.
Searched in the following locations:
  - https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.1/gradle-3.4.1.pom
  - https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.1/gradle-3.4.1.jar
Required by:
    project :
Add Google Maven repository and sync project
Open File
Enable embedded Maven repository and sync project






build.gradle

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}


File-> Project Structure -> Project

Android Gradle Plugin Version
3.4.1

Gradle Version
5.1.1

沒有留言:

張貼留言