9

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)

0

5 Answers 5

6

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

Sign up to request clarification or add additional context in comments.

3 Comments

For my project I only had to do step 1. I also downloaded gradle 1.8 and used the local distribution.
@DivyaRamakrishnan Sorry to hear that ! I take it you checked that you are using the last build tools version for Eclipse and AS ?
@2Dee ya i am using latest verison only
5

I was able to fix this by using the file path to my gradle directory:

C:\Users\xxxx.gradle\wrapper\dists\gradle-1.12-all\2apkk7d25miauqf1pdjp1bm0uo\gradle-1.12

the import continued fine.

Comments

2

This is duplicate of Unable to import Eclipse project to Android Studio (when using default gradle wrapper)

Answer:

I had to edit the gradle wrapper settings in gradle/wrapper/gradle-wrapper.properties and change gradle version to 1.8.

./gradle/wrapper/gradle-wrapper.properties :

#Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip 

I had to change gradle-1.6-bin.zip to gradle-1.8-bin.zip. I guess the old ADT plugin from eclipse which generates this file still uses the old URL.

6 Comments

What error are you getting now while using default gradle wrapper?
so many error when i fix one,i will get diff error ,at last i gave up to android studio,working on eclispe .
Delete all AS/gradle related files/folders from the project. Then reexport the project using eclipse and generate build.gradle . Now make sure you have the latest and unmodified and fresh AS installation. Follow the steps mentioned in my post linked above and tell me what error you get.
,how to import project with library like actionbarsherlock .because it has own project.
Were you able to import the project? You can add abs as either a module dependency or a maven dependency or a regular jar dependency.
|
1

If all the other solutions here do not work (they are all from 3 days ago)... I found...

I had secondary project in my settings.gradle and each of those projects had their own build.gradle. The Android Studio IDE says that you need to uddate to 0.6.1 but it points to only the first-project build.gradle - I had to manually locate the secondary build.gradle file for those projects and make sure all said 0.6.+ instead of previous versions.

1 Comment

how to find secondary project settings
0

Change gradle to 0.6.+ as ling has suggested, and also in your gradle-wrapper.properties file, change the distributionUrl to http\://services.gradle.org/distributions/gradle-1.8-bin.zip.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.