How to fix Android Studio import Project Card dead

Source: Internet
Author: User

This is often the case when using Android Studio, where you import projects from GitHub or elsewhere, and Android studio renders the card dead! When you encounter this situation, you can look at the following situation, in accordance with the method to solve!
First, start studio card dead
When we finish installing studio, the first time you start up if the card dies on this screen:

At this point, we just go to the directory of Android Studio installed in the bin directory to find this file: Idea.properties file, at the end of the file append such a sentence can: disable.android.first.run= True another method when FQ let it go slowly to download!
Ii. importing items from other places card dead (very slow)
Import a project from GitHub or elsewhere if studio is stuck for a long time, you can kill the process first, along this path: Project/gradle/wrapper find this file: Gradle-wrapper.properties, Open it up to see here:

One way is to go to this site (Gradle distributions) the appropriate version. Or go to Gradle official website (need FQ, download also very slow) download also can! Then copy the downloaded file (gradle-2.10-all.zip) to this directory: C:\Users\ user name \.gradle\wrapper\dists\gradle-2.10-all\ A4w5fzrkeut1ox71xslb49gst
Note:
A4w5fzrkeut1ox71xslb49gst This folder name is random so it's probably not the same, then import the project!


Another option is to change the version of the file above to one of your own, and then import the project.


Third, after the studio upgrade, the new project card dead
Today, after upgrading studio to the latest version, a new eye-catching result has been stuck in this interface:

I found it again to download: Gradle-2.10-all.zip went, so I follow the second method above to modify the Gradle version, and then import the compilation, the result is the following problem:

Then I knew it was Gradle's version is high, so to: the root of the project to find Build.gradle this file, do as modified:


After the modification I compiled again, and the result came up with such a mistake,

So I found me again open the app directory under the Build.gradle Open discovery: Compilesdkversion ' Google apis:google apis:23 ', and finally made him as modified:

This project is compiled through, can be deployed to the mobile phone!

Finally, I followed the previous method to do it again, found a one-time solution to the problem, what files do not have to modify!

Iv. Final Summary
Whether to import a project or a new project to die, found that it is to download: Gradle-xxx-all.zip when the best solution is to follow the above method to download the corresponding version, and then put it in that directory, this eliminates the need to modify this, modify the trouble!

Wen/devbird (author of Jane's book)
Original link: http://www.jianshu.com/p/e1c0b46e317c
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".

How to fix Android Studio import Project Card dead

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.