Android Studio (0.5.3) is driving me crazy.
I have never had serious problems with Eclipse and ADT. Android Studio is another story: I could not create one project with it.
So, I'm trying to import an Android sample project (which I suppose has the correct Gradle settings and should be ready to import):
C:\pathToMyAndroidSDK\sdk\samples\android-19\content\StorageProvider
The first error I get is the following:
Failed to refresh Gradle project 'StorageProvider'
The project is using an unsupported version of Gradle. Please use version 1.10.
Please point to a supported Gradle version in the project Gradle settings or in the project Gradle wrapper (if applicable.)
Fix Gradle wrapper and re-import project Gradle settings
OK, so I download Gradle 1.10 and change the parameters of the Gradle project so that it uses this local Gradle distribution instead of the standard Gradle shell (which seems to be included in the sample project).
This time I get another error:
Failed to refresh Gradle project 'StorageProvider'
The project is using an unsupported version of the Android Gradle plug-in (0.8.3).
Version 0.9.0 introduced incompatible changes in the build language.
Please read the migration guide to learn how to update your project.
I don't know Gradle enough to migrate the configuration myself, and I really don't want to.
Gradle Gradle 1.10 ( )?
.
. android-19, .
EDIT:
, Linux (gradlew build).
, , build.gradle:
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.android.tools.build:gradle:0.8.+'
, Android Studio.