What I have:
- Eclipse Juno Service Release 2 working on windows 7 x64.
- Android Studio updated to 0.2.8
- ADT updated
What I have done
I have been developing with Eclipse for a long time and now I wanted to give a chance to Android Studio so I checked on google developers webpage and I downloaded and updated Android Studio to 0.2.8. As google says, I do need to export from eclipse creating the gradle file so I did it. After that, I opened Android studio and check what it says on google page: "Use gradle wrapper". Every time I try to import my project I get an error saying:
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions-snapshots/gradle-1.8-20130830160653+0000-bin.zip'. Build file 'C:\Users\me\Eclipse\proyectos\myProject\build.gradle' line: 9 A problem occurred evaluating root project 'myProject'. A problem occurred evaluating root project 'myProject'. Gradle version 1.6 is required. Current version is 1.8-20130830160653+0000
What should I do? Everything I have looked on the net is for an update of the ide to 0.2.7 with a project that is imported and not to being imported.
EDIT
gradle file: (my project has a deppendency for which also I made a gradle file from Eclipse. "library" is actionbarSherlock library
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4' } } apply plugin: 'android'
dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile project(':C::Users:me:Eclipse:proyectos:library') }
android { compileSdkVersion 16 buildToolsVersion "18.0.1"
sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } instrumentTest.setRoot('tests') } }