follow this link :
To create a new Android project, open a command-line, navigate to the tools/ directory of your SDK and run:
android create project \
--target <target_ID> \
--name <your_project_name> \
--path path/to/your/project \
--activity <your_activity_name> \
--package <your_package_namespace>
target is the "build target" for your application. It corresponds to an Android platform library (including any add-ons, such as Google
APIs) that you would like to build your project against. To see a
list of available targets and their corresponding IDs, execute:
android list targets.
name is the name for your project. This is optional. If provided, this name will be used for your .apk filename when you build your
application.
path is the location of your project directory. If the directory does not exist, it will be created for you.
activity is the name for your default Activity class. This class file will be created for you inside
/src// . This will
also be used for your .apk filename unless you provide a name.
package is the package namespace for your project, following the same rules as for packages in the Java programming language.
An example to create project is shown below :
android create project \
--target 1 \
--name MyAndroidApp \
--path ./MyAndroidAppProject \
--activity MyAndroidAppActivity \
--package com.example.myandroid