I\'m trying to create a simple android project with gradle. I work in a computer with Debian GNU/Linux 7 \'wheezy\'.
I followed the recomendations in Gradle Plugin U
If you're using the command line to create the project like so:
android create project -g -v 1.2.2 --target 1 --name rtest --path rtest --activity MainActivity --package com.mydomain.rtest
The project is created to use version 1.2.2 of the android-gradle-plugin, but the project is initialised with gradle 1.12, which isn't compatible.
To fix it, do the following:
rtest/gradle/wrapper/gradle-wrapper.properties
and set distributionUrl
to the release you want; for example: http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
(don't forget to escape the colon - yes, that makes me smile too);build.gradle
and change runProguard false
to minifyEnabled false
;./gradlew clean && ./gradlew assembleDebug
.gradle
folder, but I'm not sure if it's necessaryAnd it all works again.