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 bin directory of the installation directory of Android Studio 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 the path:项目/gradle/wrapperLocate this file:gradle-wrapper.properties, open it up to see here:


  • One way is to go to this site (Gradle Distributions) to the appropriate version. Or goGradle official website (need FQ, download is very slow)Download is also possible!
    This file will then be downloaded (Gradle-2.10-all.zip) is copied to this directory:
    C:\Users\用户名\.gradle\wrapper\dists\gradle-2.10-all\a4w5fzrkeut1ox71xslb49gst

    Note:

    a4w5fzrkeut1ox71xslb49gst This folder name is a random number so it is 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 and opened the app directoryBuild.gradleOpen discovery:compileSdkVersion ‘Google Apis:Google Apis:23‘, and finally made him as modified as:


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 it is the import project or the new project to die, found that it is gradle-xxx-all.zip to download: 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!


Source: http://blog.csdn.net/wpx312058603/article/details/51811750

From for notes (Wiz)

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.