Sunday, May 31, 2015

Android command line project creation and gradle

Here's another instance where Android's lousy documentation is just plain wrong AGAIN. When you create a project using android project create as per their documentation you will see there is no gradle file. I've tested this on my Ubuntu 15.04 running openjdk7.

It will then say to build or run your project run the non-existant ./gradlew file. What you need to do is as per stackoverflow is to add a --gradle and a --gradle-version to the project create command that is nowhere mentioned in google's documentation. Seriously Google, you don't have enough money or staff to run once through your docs to discover that when people RTFM they don't actually work.

Again one has to find the answers on stackoverflow. I'd find the right place to report it, but someone already told you that you have the wrong packages listed for Ubuntu since years and you never bothered with it.