Today pull colleague latest code, compile always reported the following error:
Error:could not find com.android.tools.build:gradle:2.2.0.
Searched in the following locations:
File:/d:/software/android-studio/gradle/m2repository/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.pom
File:/d:/software/android-studio/gradle/m2repository/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.jar
Https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.pom
Https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.0/gradle-2.2.0.jar
Run to the Maven.org website to view, from 2.1.3 There is no update, shit!
Baidu said to the version down to 2.1.3, this does not pull eggs, you are ready to use only 2.1.3? Finally find the script, add the Jcenter library in, you can download from the Jcenter
Solve Could not find com.android.tools.build:gradle problem