Patrick Brennan
Patrick Brennan

Reputation: 2738

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

Upvotes: 40

Views: 28106

Answers (6)

Daniele Segato
Daniele Segato

Reputation: 12899

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"

Upvotes: 46

lidkxx
lidkxx

Reputation: 2841

I was experiencing the same problem trying to go through Android N: Quick Settings codelab from Google (last updated on June 16, 2016). Turned out the sample code had something like this in app's build.gradle file:

android {
    compileSdkVersion 'android-N'
    buildToolsVersion "24.0.0 rc3"

defaultConfig {
    applicationId "com.google.android_quick_settings"
    minSdkVersion 'N'
    targetSdkVersion 'N'
    versionCode 1
    versionName "1.0"
}

When I went ahead and changed it to:

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.1"

defaultConfig {
    applicationId "com.google.android_quick_settings"
    minSdkVersion 25
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
}

it started to work.

Upvotes: 0

Carlos
Carlos

Reputation: 1329

If you're developing for Android N you may open the SDK Manager and notice that there's no "Documentation for Android SDK" under Android 7.0 (24).

Upvotes: 1

Patrick Brennan
Patrick Brennan

Reputation: 2738

Unfortunately, I couldn't find a way to get un-wedged from this situation, so I reinstalled Android Studio and the Android SDK. That unblocked me directly and took less time and hassle than I feared.

Upvotes: 0

yuoo2k
yuoo2k

Reputation: 111

Try removing the MNC (M Preview) folder from your SDK folder.

rm -rf ~/Library/Android/sdk/system-images/android-MNC/

or by opening the standalone SDK manager and selecting it and pressing Delete # packages.

Upvotes: 10

Zayin Krige
Zayin Krige

Reputation: 3308

Go to Android SDK Manager and make sure you have the MNC system images installed

enter image description here

Upvotes: 0

Related Questions