create android project with gradle from command line deprecated?

Viewed 2418

I am trying to create android project with gradle from command line using this command:

  android create project \
    --target android-23 \
    --name HelloWorld \
    --path HelloWorld/ \
    --activity MainActivity \
    --package com.example.helloworld \
    --gradle \
    --gradle-version 1.3.0

Project structure was successfully generated but when I try to run gradlew assembleDebug I get:

A problem occurred evaluating root project 'HelloWorld'.
> Could not create plugin of type 'AppPlugin'.

I was traversing google for half of day and finally I found that usage of gradle in android create project is (probably) deprecated:

https://code.google.com/p/android/issues/detail?id=160032

Are there any supported methods (that are clean, no hacks) to achieve the goal (in command line)?

1 Answers
Related