Android studio update Gradle error solution, androidgradle

Source: Internet
Author: User

Android studio update Gradle error solution, androidgradle

When importing Android Studio, the first thing is to download the gradle of the corresponding version of the project. However, Android Studio is slow to download corresponding gradle because of the wall in China. We can first use tools such as thunder on the internet, put them in the specified path, and then restart Android Studio to solve this problem. First open the android studio project and find the project directory gradle \ wrapper \ gradle-wrapper.properties File

The content is as follows:

# Wed Apr 10 15:27:10 PDT 2013
DistributionBase = GRADLE_USER_HOME
DistributionPath = wrapper/dists
ZipStoreBase = GRADLE_USER_HOME
ZipStorePath = wrapper/dists
DistributionUrl = http \: // services.gradle.org/distributions/gradle-1.9-all.zip

The most important thing is the following sentence: android studio will download the gradle plug-in line with the current version online. Although this website can be accessed, it is too slow, therefore, each update may take a long time or time out.

The following is my attempt to solve the problem is to download the plug-in of the http://services.gradle.org/distributions/gradle-1.9-all.zip version through the download tool, the download tool will be faster to download the zip file directly, do not extract copy to C: \ Users \ Administrator \. gradle \ wrapper \ dists \ gradle-1.9-all \ 3jdgemv0iv8uqohg3kcp2o88r1 directory

Close android studio again or click Sync Project Gradle Files in the toolbar of android studio.

Android studio is an automatic update plug-in. You do not need to download it.

 


Related Article

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.