Solve Could not find com.android.tools.build:gradle problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.