Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install android old system images (ABIs) from the command line

From the sdk manager you can easily tick the checkboxes and you get system images (for instance, ARM EABI v7a System Image) installed and available to create AVDs.

My problem is that the system where I'm trying to create an AVD is headless and so I cannot open the sdk manager. I'm force to install system images from the command line.

It was easy to install targets by running $ android update sdk --no-ui (all targets where installed actually but without system images except of the newest target "android-17"). Now, how do I install system images for "android-15"?

When I try $ android update sdk --no-ui --filter "sysimg-15" the result is

Error: Ignoring unknown package filter 'sysimg-15'.
Warning: The package filter removed all packages. There is nothing to install.
         Please consider trying to update again without a package filter.

Unfortunately google/stackoverflow didn't help me.

like image 676
Al_ Avatar asked Dec 04 '12 16:12

Al_


People also ask

How do I run an emulator from command prompt?

Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]

Where does Android Studio install command-line tools?

The Android SDK Command-Line Tools package contains various tools for building and debugging Android apps. It is released concurrently with Android Studio and is installed in the android_sdk /cmdline-tools/ version /bin/ directory.

What is Android command-line?

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.


1 Answers

The option --all or -a is the answer:

android update sdk --no-ui --all --filter "sysimg-15"

Not including --all, the android updater takes only the latest package (sysimg-17) into account ignoring older packages. Including all packages with -a allows you to filter (and so get installed) any sysimg.

like image 133
Al_ Avatar answered Sep 21 '22 20:09

Al_