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