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