root@hw:~/Android/out/host/linux-x86/sdk# android
建立新的AVD:
Name:zz
Target:Android AOSP(Preview)-API Level AOSP......
(其他默认)
7,若创建AVD成功,则可用如下命令查看
hw@hw:~$ sudo -s
root@hw:~# android list
hw@hw:~/Android$ android list
Available Android targets:
id: 1 or "android-AOSP"
Name: Android AOSP (Preview)
Type: Platform
API level: AOSP
Revision: 1
Skins: WQVGA400, WQVGA432, WVGA800 (default), WVGA854, QVGA, HVGA
Available Android Virtual Devices:
Name: zz
Path: /home/hw/.android/avd/zz.avd
Target: Android AOSP (Preview) (API level AOSP)
Skin: WVGA800
8,运行AVD
可能会出现找不到emulator-arm的文件,请将
emulator-arm文件所在目录/home/***/xxx/yyy/zzz/
链接到
/home/hw/Android/out/host/linux-x86/tools/
具体操作为:
hw@hw:~$ ln /home/***/xxx/yyy/zzz /home/hw/Android/out/host/linux-86/tools