Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
271 views
in Technique[技术] by (71.8m points)

android - Could not fetch model of type 'IdeaProject' using Gradle installation

I've downloaded and installed Android Studio with all the required dependencies such as JDK 1.7 and Gradle 1.6. I am able to import the projects and modules quite comfortably in Studio, but when I try to create a new project I am getting errors like this:

image

Since this is the new born IDE I couldn't find much details on this, except for this and this. Any help would be greatly appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

After to pass much time trying to resolve this, i reached a solution :

Are you using "Windows Version" of AS ?

Please follow these steps :

1 - Install the last version of JDK with respective JAVA_HOME variable.

2 - Download and Install Gradle1.6 with respective GRADLE_HOME variable,

http://www.gradle.org/docs/current/userguide/userguide_single.html#installation.

2 - Delete these folders:

    C:Usersyouruser.AndroidStudioPreview
    C:Usersyouruser.android
    C:Usersyouruser.gradle

3 - Reopen Android Studio

Now probably it will works

There are a lot of bugs in "Early Access Preview"....


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...