I am trying to create a simple Android project with gradle. I work on a computer with Debian GNU / Linux 7 "wheezy".
I followed the recommendations in the Gradle Plugin User Guide - Android Tools Project Site , but it gives an error message:
FAILURE: Build failed with an exception. * Where: Build file '/home/alex/Proyectos/MyLogin/build.gradle' line: 11 * What went wrong: A problem occurred evaluating root project 'MyLogin'. > Could not create plugin of type 'AppPlugin'. * Try: Run with
I followed the specs:
- Gradle 1.9
- Plugin 0.7
- SDK 17+ (actually 19)
I also ran the project again, and the results that I showed were issued by the gradle tasks
command, as shown in the documentation.
I also tried gradle 1.10, but the result is the same.
Even this question was not useful, as it solved with the upgrade to gradle 1.6 (I understand that plugin 0.7 requires at least gradle 1.9).
I tried this after an error with the same error in Android Studio and IntelliJ Idea .
EDIT: I also tried with new projects in both IDEs and got the same problem. But what surprises me most is that both IDEs use gradle 1.8 in their wrapped form. I tried to configure both of them to use a local gradle installation, but still the same question.
What am I doing wrong? This is mistake? How can I avoid the problem?
Please help me.
EDIT: Here is my build.gradle
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } apply plugin: 'android' repositories { mavenCentral() } android { compileSdkVersion 14 buildToolsVersion '19.0.1' defaultConfig { minSdkVersion 14 targetSdkVersion 19 } } sourceCompatibility = 1.6 version = '0.1' dependencies { compile 'com.android.support:support-v4:18.0.0' //compile project(':core') }
android gradle
aBarocio80 Dec 28 '13 at 5:53 on 2013-12-28 05:53
source share