Android - create and compile project from command line

Viewed 4374

For a project I'm working on, I need to be able to create an android project and then compile it from command line (windows and mac).

I've installed Android Studio + Android SDK on my windows machine and I searched and found that there should be a command android create project [options]. But when I run it, first there is no create project option, and second, it tells me that android command is deprecated and I should use sdkmanager instead - but I cannot find any way to create a project from command line using sdkmanager and then compile it.

How and can it be done from command line?

1 Answers
Related