How to replace Gradle in Android studio in case the download is stuck

Source: Internet
Author: User

We need to import other people's demo project in the development process, then you will download the Gradle build file, but sometimes the download will always be stuck, then you will think, I use the Thunderbolt to download the Gradle file and then not on the line, then the problem came

1. Where do we go from here?

A: Please see my blog Gradle download above provides download URL can choose to download the version

2. Which directory does the download post on the computer?

A: The first method of Android Studio gradle related configuration file, the default download of the root directory is C:\Users\hasee\.gradle, then we know the directory will download the file into C: \ Users\hasee\.gradle\wrapper\dists\gradle-4.1-all\bzyivzo6n839fup2jbap0tjew folder, the last folder name is very strange, because it is randomly generated, no tube, We downloaded the corresponding version gradle-4.1-all.zip, without decompression, you can run Android studio, Android Studio will automatically unzip, so that you can use your own downloaded gradle files.

The second method first creates a project locally with the current version of Gradle, guarantees that it can be compiled, and then replaces the two files in the project with the "Gradle" folder and the "Build.gradle" file in the local project to import the demo again.

How to replace Gradle in Android studio in case the download is stuck

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.