Reputation: 377
I downloaded the latest Android Studio (Mac), I got this error when I try to create a new project:
Failed to import Gradle project: could not fetch model of type IdeaProject using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'
Would anybody know how I can move past this problem?
Upvotes: 2
Views: 849
Reputation: 1182
Try changing in the build.gradle file:
:MyApplication1 -> :MyApplication1Project:MyApplication1
for all references
Upvotes: 1
Reputation: 4637
I can't say for sure without seeing your build.gradle file, but at line 9, do you have the line:
apply plugin: 'AppPlugin'
If this is the case the problem is that you're attempting to build an android application but you're applying the wrong plugin. If this is an Application, it should be:
apply plugin: 'android'
And if it's a library project then it should be:
apply plugin: 'android-library'
Again though, I can't say for sure if this is the problem because I haven't seen your build.gradle file.
Upvotes: 0