Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio AVD Manager cannot update system images

When I open my AVD Manager from Android Studio (version 2.1 Preview 1), I am presented with a banner on my AVD list which reads:

System image update is available (link:)"Update System Images"

When I click on the "Update System Images" link, I am presented with the following mysterious error message:

**Packages Unavailable**   The following packages are not available:     - Package id system-images;android-MNC;default;x86_64     - Package id system-images;android-MNC;default;x86 

I don't know what this means or how to resolve it. Web searches have been fruitless. Any ideas?

Here is what I am seeing: enter image description here

In response to Zayin, here is what I see when I look for the MNC system images. There doesn't appear to even be an option for installing them. enter image description here

like image 632
Patrick Brennan Avatar asked Mar 10 '16 19:03

Patrick Brennan


People also ask

Why AVD Manager is not working?

It happened something when the libraries are not installed correctly. Follow the steps as mentioned below: Created a blank project using Android Studio. After creating the project, using the shortcut ctrl+shift+a option and searched for AVD Manager.

How do I upgrade my AVD?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

What is AVD Manager in Android Studio?

The AVD Manager is an interface you can launch from Android Studio that helps you create and manage AVDs. To open the AVD Manager, do one of the following: Select Tools > AVD Manager. Click AVD Manager in the toolbar.

How to use the avdmanager tool in Android?

The avdmanager tool is provided in the Android SDK Tools package (25.3.0 and higher) and is located in android_sdk /tools/bin/. Verbose mode: errors, warnings and informational messages are printed. Create a new AVD. You must provide a name for the AVD and specify the ID of the SDK package to use for the AVD using sdk_id wrapped in quotes.

Do I need to create an AVD for each system image?

We recommend that you create an AVD for each system image that your app could potentially support based on the <uses-sdk> setting in your manifest. The hardware profile defines the characteristics of a device as shipped from the factory.

How to create a virtual device in Android Studio?

Create an AVD. Tip: If you want to launch your app into an emulator, instead run your app from Android Studio and then in the Select Deployment Target dialog that appears, click Create New Virtual Device . To create a new AVD: Open the AVD Manager by clicking Tools > AVD Manager . Click Create Virtual Device, ...


1 Answers

I had the same error before. Just open the package manager and delete/uninstall everything for Android M (API 22 MNC Preview). Marshmallow is already out anyway.

You may have to restart Android Studio afterward cause it caches that check.

The M release has been removed from the packages for some reason after the Marshmallow release and I think that error means he can't find the upgrade to those images. When you wipe them out it stop complaining and you do not see them anymore on the list of packages.

In Android Studio:

  1. Open SDK Manager. To do that, go to Settings -> Appearance & Behavior -> System Settings -> Android SDK
  2. Make sure you are in the SDK Platform tab
  3. Uncheck Android M (API 22, MNC Preview)
  4. Click "OK"
like image 66
Daniele Segato Avatar answered Oct 21 '22 22:10

Daniele Segato