Creating a project based on a gradle wroid project via command line

I need to use a low level android machine. I have successfully created a test project using the command line:

   android create project --target <target-id> --name MyFirstApp \
   --path <path-to-workspace>/MyFirstApp --activity MyActivity \
   --package com.example.myfirstapp


However, I see that it does not create any gradle files and the structure seems to be different when I create the project in Studio. How do I create a project from the command line so that it also includes build.gradle files? I currently see a build.xml file that should be ant, but I haven't used ant before.


source to share

1 answer

Use the parameter -g

when creating a project. For more information try

android create project -h



All Articles