我想在Mac的虚拟机上运行Android模拟器。如何为Android模拟器添加ABI?
这是$ android list targets
结果:
Available Android targets:
----------
id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 3
Skins: WQVGA432, HVGA, QVGA, WXGA800, WQVGA400, WXGA800-7in, WVGA800 (default), WSVGA, WVGA854, WXGA720
Tag/ABIs : no ABIs.
如果我这样做$ android create avd --name myapp --target 1
,它会显示错误:
Valid ABIs: no ABIs.
Error: This platform has more than one ABI. Please specify one using --abi.
由于这是一个虚拟机,没有界面(GUI)。
问题:如何在android
命令行中安装ABI?
更新1
我想这
$ android update sdk -a -u -e -t sys-img-x86-android-19
将得到以下错误:
Do you accept the license 'android-sdk-license-5be876d5' [y/n]: y
Installing Archives: Preparing to install archives Downloading Intel x86 Atom System Image, Android API 19, revision 2 URL not found: /home/vagrant/android-sdk-linux/temp/sysimg_x86-19_r02.zip (Permission denied) Done. Nothing was installed.
我收到了权限错误。任何想法?请参阅更新1 – 2014-09-13 23:29:04
奇怪。你可以确认是否存在android-sdk-linux/temp目录,并且由流浪用户'ls -la〜/ android-sdk-linux/temp'拥有? – shauvik 2014-09-14 00:11:04
它说:总数8 drwxr-xr-x 2根根4096 Sep 3 05:21。 drwxrwxr-x 8 vagrant 5000 4096 Sep 3 05:20 .. – 2014-09-14 03:52:15