Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add ABIs for Android emulator?

I am trying to run Android emulator on Mac's virtual machine.

This is the result from $ 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.

If I do this $ android create avd --name myapp --target 1, it will show error:

Valid ABIs: no ABIs.
Error: This platform has more than one ABI. Please specify one using --abi.

Since this is a VM, there is no interface (GUI).

Question: How do I install ABI in the android command line?

UPDATE 1

I tried this

$ android update sdk -a -u -e -t sys-img-x86-android-19

The got the error below:

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.

like image 901
HP. Avatar asked Sep 04 '14 06:09

HP.


1 Answers

Install the system images (x86) for the latest API (23) using

$ android update sdk -a -u -t sys-img-x86-android-23

To see a list of image ids use $ android list sdk -a -e

where -a stands for all and -e for extended, -t for filter and -u for no-ui

like image 53
shauvik Avatar answered Sep 16 '22 13:09

shauvik