我想在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