Android Studio Import Engineering Issues Summary

Source: Internet
Author: User

There are several open source projects on GitHub, and there are a variety of issues when importing Android studio.

After searching all kinds of information on the Internet, one by one can be solved, and a simple summary is made on the question point:

1. Gradle Project Sync failed:

This problem occurs because the Gradle update fails in C:\Documents and settings\user\.gradle\wrapper\dists

The version that needs to be updated is visible in the catalog:


The solution is to manually download the appropriate version of the package, and then put the package in the corresponding folder, the folder of the other files are deleted,

then restart Android Studio;

: Http://services.gradle.org/distributions/gradle-2.2.1-all.zip (requires a different version of the optional package name)


2. Connection Refused:connect


This problem occurs because the Gradle version of the imported project is not the same as the version of the Android studio,

The solution is called "counter switch", see this link: http://blog.csdn.net/eclipsexys/article/details/41142907

The general idea is to create a new project, and then copy the Gradle related files from the new project to the project to be imported,

Files to copy:



3.Gradle DSL method not found: ' Runproguard () '


This problem occurs because the Runproguard () method is replaced by another method in the new version

Workaround: Change the Runproguard () method in Build.gradle to minifyenabled


4.The SDK Build Tools Revision (19.0.1) is too low for project ': library '. Minimum Required is 19.1.0

This problem occurs because the version of Buildtoolsversion that is used in the project is too low, open the Android SDK Manager to see if the version is required or higher,

No, to download:


Then change the buildtoolsversion to the corresponding version in the Build.gradle file:


5.No resource found that matches the given name:


This problem occurs because our compilesdkversion, targetsdkversion version is too low, the solution is to

Compilesdkversion, Targetsdkversion changed to 21 OK (here the premise has been downloaded android5.0, there is no need to download first).


Android Studio Import Engineering Issues Summary

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.