Solve the Problem of cocould not find com. android. tools. build: gradle, couldnotfindntldr
Today, I pulled my colleague's latest code and always reported the following errors during compilation:
Error: cocould 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
Go to the maven.org website and check that no updates have been made since 2.1.3, shit!
Baidu has said that the version will be downgraded back to 2.1.3. Isn't that a joke? Are you going to use only 2.1.3 in the future? Finally, you can find the script and add the jcenter library to it to download it from the jcenter.