3

I need to use a low end machine for android dev. I 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 different that when I create a project in Studio. How do I create a project from the command line so that it includes the build.gradle files as well? Currently I do see a build.xml file that must be ant but I haven't used ant before.

2
  • I would just copy some example/mini project and adapt the build.gradle Commented May 7, 2015 at 17:40
  • Why not to create the gradle file via any text editor? Commented May 8, 2015 at 4:58

1 Answer 1

1

Use the -g option when creating the project. For more details, try

android create project -h

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.