Summary of Common commands for android development and common commands for android Development

Source: Internet
Author: User

Summary of Common commands for android development and common commands for android Development

1. compile the project

Enter the project directory, for short, <project> and execute ant debug. This is the build version. You can also execute ant release to create a release version, but this version must have a signature.


2. Installation Project

Ant debug install, which version should be determined during installation. Note: Go to the project directory and execute this statement.


3. Start the android Simulator

Emulator-avd av, av is the name of the simulator


4. list all Simulators

Android list avd. If you want to see which simulators are available, use this command.


5. List available versions of all android sdks

Android list targets


6. view the currently connected Device

Adb devices: execute this command. The connected real machine or android simulator will be listed.


7. Select a device and then install it.

If you have executed ant debug under <project>, compiled the project, and then directly executed ant debug install, this is to install the installation package of the debug version on the default device. If you want to select a device to install the installation package on this device, run the following command:

Adb-s emulator-5554 install-r hw-debug.apk

"Installation" is the name of the installation package. Note that the command must be executed under <project>/binning, because the command contains hw-debug.apk "is located in this directory.

Related Article

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: info-contact@alibabacloud.com 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.