Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting error when importing project in android studio?

Recently i updated my android studio to 0 .30 I was trying to import project in android studion.

Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.6.1.

Please update the version of the dependency 'com.android.tools.build:gradle' in your build.gradle files.

Consult IDE log for more details (Help | Show Log)

2nd error

You are using an old, unsupported version of Gradle. Please use version 1.8 or greater. Please point to a supported Gradle version in the project's Gradle settings or in
the project's Gradle wrapper (if applicable.) Consult IDE log for more details (Help | Show Log

3rd error

Could not execute build using Gradle distribution ' http://services.gradle.org/distributions/gradle-1.6-bin.zip'. Build file 'C:\Users\Asthme\crushersblue1\babies\build.gradle' line: 8

Could not find method classpath() for arguments
[com.android.tools.build:gradle:0.6.+] on project ':crushersblue1:babies'.

Consult IDE log for more details (Help | Show Log)

like image 795
Asthme Avatar asked Oct 28 '13 11:10

Asthme


1 Answers

Step 1: Change line in build.gradle from:

dependencies {
classpath 'com.android.tools.build:gradle:0.6.+'
}

Step 2:

In the YourProject.iml file, delete the entire component name="FacetManager" tag.

Step 3

(Maybe not necessary): In the Android SDK manager, install (if not already installed) Android Support Repository under Extras.

Refer this

like image 145
Linga Avatar answered Oct 18 '22 22:10

Linga