Android Lesson Two-command-line basic operations

Source: Internet
Author: User

Android Environment Checklist

Configuration of environment variables:

to be able to use commands in any directory, sdk folder path and folder path configuration to path environment variable

1) Locate the two folders under the corresponding installation path

2) Configure Environment variables

The following two items are added to the path variable in the Windows environment:

E:\Program Files\android\adt-bundle-windows-x86-20140321\sdk\platform-tools;

E:\Program Files\android\adt-bundle-windows-x86-20140321\sdk\tools


Basic commands are used:

    • List the android versions you can use

Android list targets

    • List the virtual machines you can use

Android List AVD

    • Create a virtual machine

Android Create AVD–N < virtual machine name >-T <target version id>-C <sd card size >-S < Screen size >

    • Start a virtual machine

Emulator – AVD < virtual machine name >

    • Importing files to your phone

ADB push <windows source file path > < Mobile target path >

    • Export files from your phone

ADB Pull < phone source file path > <windows directory path >

    • installation program

Abd install <apk file path >

    • Uninstalling the program

adb Uninstall < package name >

    • Restart adb

ADB kill-server

Abd Start-server

Operation result


Android Lesson Two-command-line basic operations

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.