如何搭建android avd
2016-01-18 · 做真实的自己 用良心做教育
创建AVD
1、在eclipse的window菜单下有个Android Virtual Device Manager菜单,如下图。
2、点击Android Virtual Device Manager菜单,进入AVD编辑界面,如下图。
3、在AVD编辑菜单中,点击右边的New…按钮,进入新建AVD界面,如下图:
参数说明:
AVG Name:虚拟设备名称
Device:设备;指具体的手机设备型号,可以在window->Android Virtual Device Manager->Device Definitions中进行定义。开发环境中预设了一些手机型号,很多都是google公司的Nexus系列,如下图:
Target:程序的最低运行在哪个版本的android平台
CPU/ABI:
Keyboard:
Skin:皮肤设置,有2个选项。
1) Skin with dynamic hardware controls:根据硬件,动态的设置皮肤
2) No skin:无皮肤
Front Camera:前置摄像头
Back Camera:后置摄像头
Memory Options:
RAM:缓存
VM Heep:虚拟内存区
Internal Storage: MiB/GiB
SD Card:
Size: KiB/MiB/GiB
File:
完成上述配置,点击OK按钮就完成了一个AVD的配置,如下图:
Available Android targets:
----------
id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : armeabi-v7a, x86
----------
id: 2 or "Google Inc.:Google APIs:19"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 3
Description: Android + Google APIs
Based on Android 4.4.2 (API level 19)
Libraries:
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, WQVGA400, WSVGA, WXGA800-7in, WXGA720, HVGA, WQVGA432, WVGA
800 (default), QVGA, WXGA800
ABIs : armeabi-v7a
C:\Users\Administrator>android create avd --name avd_xingzheng --target 1
Valid ABIs: armeabi-v7a, x86
Error: This platform has more than one ABI. Please specify one using --abi.
当创建的时候出现了上面的问题,This platform has more than one ABI. Please specify one using --abi.
试着从选择第二个来实现这个:
C:\Users\Administrator>android create avd --name avd_xingzheng --target 2
Auto-selecting single ABI armeabi-v7a
Created AVD 'avd_xingzheng' based on Google APIs (Google Inc.), ARM (armeabi-v7a
) processor,
with the following hardware config:
hw.lcd.density=240
vm.heapSize=48
hw.ramSize=512
C:\Users\Administrator>