How to add ABI for Android emulator?

I am trying to run an Android emulator on a Mac virtual machine.

This is the result of $ 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 an error:

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

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

Question : How to install ABI in android command line?

UPDATE 1

I tried this

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

Received error below:

You accept the license "android-sdk-license-5be876d5" [y / n]: y

Installing archives: preparing to install archives Download Intel X86 Atom System Image, Android API 19, version 2 URL not found: /home/vagrant/android-sdk-linux/temp/sysimg_x86-19_r02.zip (Permission denied) Completed. Nothing has been installed.

+5
source share
3 answers

Install 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 everything and -e for advanced, -t for filter and -u for no-ui

+7
source

I had the same problem, and I was able to get past this part with the following (now I get a refusal to initialize SDL: there is no video device available when working with the android ion emulator).

On the command line after starting vagrant ssh

1. sudo su
cd /home/vagrant/android-sdk-linux/tools
3. android update sdk -a -u -t sys-img-x86-android-19
4. Accept the terms of the license and wait for it to download / install material
5. Close / open the command line and run vagrant ssh
6. Now you can make android list targets , and the default value / x 86 should be there 7. Run android create avd --name myapp --target 1 --abi default/x86

+2
source

Try with the sudo command. It worked for me!

 sudo /home/vagrant/android-sdk-linux/tools/android update sdk -a -u -t sys-img - x86-android-19 

Beware of gaps in the team above!

+2
source

Source: https://habr.com/ru/post/1201794/


All Articles