Android Build simulator for debugging

Source: Internet
Author: User

After installing the Android development environment. Use the next few commands. Android, ADB, emulator

Android-the most important Android command. Ability to perform SDK updates, list device sources, generate virtual devices, and more.

Adb-android Debug Bridge, is a client program. The ability to connect to a server listening on 5037port (ADB server), the ADB server scans the odd port number between 5555-5585 on a virtual set or physical device. These port numbers are monitored by adb daemon, and adbd is the daemon that executes on each device to listen for commands from the ADB. used to perform some operations, such as installing programs, sending files, pulling files, and so on.

The structure diagram is roughly:

ADB-5037:ADB server in PC-5555:ADB daemon in device


Emulator-commands for virtual devices, such as turning on virtual devices.


#列出可用的设备源

Android list target


Id:1 or "android-21"

Name:

...


#依据可用的设备源建立一个虚拟的设备实例,-n Specifies the name,-t specifies the ID number.

Android Create Avd-n Zhcemulator-t 1


#列出全部的虚拟设备实例

Android List AVD


#打开虚拟设备

EMULATOR-AVD Zhcemulator


#有时候会出现error: This platform have more than one ABI, specify one using--abi

This is missing image and downloading the image of arm or Intel is possible.


#有时候可能会出现failed to open Lib64egl_translator errors, this is because some shared libraries emulator cannot be found, shared libraries under tools/lib/. Example:

Lib64egl_translator.so
Lib64gles_cm_translator.so
Lib64gles_v2_translator.so
Lib64openglrender.so
。。。

You can add it to the LD_LIBRARY_PATH environment variable.

or copy the so file directly under the Tools folder.

Assuming that the problem is not solved, it may be the problem with the graphics card. Ability to upgrade graphics drivers and more.


Export Ld_library_path

#列出当前的设备, including physical and emulator

ADB devices



#进入设备的shell环境

Adb-s Zhcemulator Shell


#安装程序

Adb-s Zhcemulator Install hongchangfirst.apk


#更新已有程序

Adb-s Zhcemulator Install-r hongchangfirst.apk


#向android上push一个文件

Adb-s Zhcemulator push/home/hongchangfirst/a.data/mnt/sdcard/


#从android上拉取一个目录下来

Adb-s Zhcemulator pull/mnt/sdcard/home/hongchangfist/


GUI for #打开sdk Manager

Android Update SDK


Android Update SDK--no-ui


Original: http://blog.csdn.net/hongchangfirst/article/details/41896411

Author: Hongchangfirst

Hongchangfirst's homepage: http://blog.csdn.net/hongchangfirst


Android Build simulator for debugging

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.