Android Studio Update Gradle failed resolution-Go

Source: Internet
Author: User

  • The speed of gradle is too slow each time you automatically update the
    because the Gradle server is slow, so the update gradle is slower, it is recommended to download it first, Then manually add the download directory to the Gradle to increase the speed.
    • Use the download tool to download the required version of Gradle (), note here that you should select a file similar to Gradle-2.12-all.zip .

       
    • Open the Android Studio project directory: < project directory >\gradle\wrapper\ , note that the project directory here is the directory for the project you are compiling. In the wrapper directory with a file named gradle-wrapper.properties , open the file with a text editor and edit the name of the version you downloaded in the last act of the file. Gradle-2.14.1-all.zip

        in the slice,

       
    • on the toolbar of Android studio, click Sync Project with Gradle Files icon, sync, click, wait a minute, close the Android studio software directly (or enter Gradlew in the terminal window of Android Studio and see the start of a bunch of dots, Close Android Studio).

       
    • to open the c:\user\< user name >.gradle\wrapper\dists directory on your machine, where the username is determined based on the user name you logged in. In this directory you will be issued a version of the directory you have just written in wrapper.properties (in this case, gradle-2.14.1), enter the directory you will see a series of alphanumeric directories, enter the directory, delete all files in the directory , copy the Gradle-2.x.x-all.zip (in this case: gradle-2.14.1-all.zip) file you just downloaded into the directory and do not unzip it.

       
  • Restart Android Studio and click Sync Project with Gradle Files for update update OK (or enter Gradlew in the terminal window of Android studio for updates)


Ming slowly
Links: Http://www.jianshu.com/p/e887203e30f6
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Android Studio Update Gradle failed resolution-Go

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.