For those tutorials that are written on the web, many of the solutions that are too slow to import other people's projects, I feel a little bit cumbersome and not useful, and I offer a simple and effective method here.
this article mainly resolves when the Gradle version is inconsistent , Android Studio automatically downloads the matching Gradle version resulting in a lengthy download issue.
The main reasons are:
This is foreign, need FQ, otherwise it will be particularly slow.
of course, if it is not too troublesome to find your own online can download the address, later also need to configure, in short, not too much trouble can toss, for the great God, who often fq, could not look.
The following is the beginning of formal content:
Generally downloaded items have these folders, before importing the project, first delete the Gradle folder and the following red box several folders
Next open the entire project Build.gradle file, can be opened directly with Notepad, is in the red circle inside the
After opening to find this piece, and then modify the later version number, my picture is 2.2.2, I can look at your usual project of this file use version number, and then make changes.
The import will not start until the modification is complete, but a window pops up when you import it.
Whether to use Gradle wrapper must be canceled, that is, each time you import someone else's project is particularly slow root cause
The cancellation will let you manually select the Gradle version, typically under the Gradle folder of the Android Studio installation directory
For example:
C:\Program files\android\android Studio\gradle
This folder has the currently available version of Gradle, select a folder similar to Gradle-xxx.
Then confirm that the import is complete.
Anyway, I was so imported, it was very fast.
How to import someone else's Android studio project to resolve Gradle version incompatibility issues