How to import someone else's Android studio project to resolve Gradle version incompatibility issues

Source: Internet
Author: User

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

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.