buildToolsVersion is not specified
and i have it defined in gradle.properties
A problem occurred configuring project ':GoogleWrapperSample'.
> Failed to notify project evaluation listener.
> A problem occurred configuring project ':osmdroid-android'.
> Failed to notify project evaluation listener.
> buildToolsVersion is not specified.
> Cannot add task ':osmdroid-android:install' as a task with that name already exists.
> Cannot add task ':GoogleWrapperSample:install' as a task with that name already exists.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Solution: Make sure the following is on all android projects:
apply from: "${rootDir}/gradle/android-support.gradle"
And the root build.gradle has the following:
apply from: "${rootDir}/gradle/maven-support.gradle"
It's easy to get in copy and paste frenzy over this. Do NOT apply android-support to non-Android projects.
The fist was added from http://ascii.co.uk/art/fist
Or maybe it was here: http://www.ascii-art.de/ascii/def/fist.txt
The text was added from http://www.ascii-art-generator.org/
In short, gradle will only sign the outputs of the project. We couldn't find a way to also sign the pom, and javadocs, and sources. All of these are requirements for maven central.
It's not that we hate it, it's that we have to use. There's no real choice for android projects. Maven is faster and easier for pretty much everything, except android (the easy part).
gradle install
to install my APK projects on device, now it doesn't workTry using gradle installDebug
or gradleInstallRelease
.
gradle install
now does the maven local publish thingy whereas the other tasks install on device.