Create, compile, install, and run a project using the command line

Source: Internet
Author: User


1. Create a project:

Use the android SDK's andoid command in the tools directory

android create project --target 2  --path /workspace/andriod/learning/Now --activity Now  --package com.wei.andriod.learning.Now
Here, the target indicates the 2nd platforms in the target list.
Path, activity, and package are not required.

2. compile the project:

Switch the path to the project path, which is at the learning/now level

Execute: ant debug

(ANT command is required. If not, Apt-Get intall *** will try to install it)

3. Run the program:

Open a simulator or device (you may have to select multiple devices. I did not try it)

In the project path, execute ant intall, find the program icon on the device, and execute it by yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.