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.