[英]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: 当我从Android Studio(版本2.1预览版1)打开AVD管理器时,我的AVD列表上会显示一条横幅,上面写着:
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: 这是我所看到的:
In response to Zayin, here is what I see when I look for the MNC system images. 回应Zayin,这是我在寻找MNC系统图像时所看到的。 There doesn't appear to even be an option for installing them. 似乎甚至没有安装它们的选项。
I had the same error before. 之前我有同样的错误。 Just open the package manager and delete/uninstall everything for Android M (API 22 MNC Preview). 只需打开包管理器并删除/卸载Android M (API 22 MNC Preview)的所有内容。 Marshmallow is already out anyway. 无论如何,棉花糖已经出来了。
You may have to restart Android Studio afterward cause it caches that check. 您可能必须重新启动Android Studio,因为它会缓存该检查。
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. 在Marshmallow发布后,由于某种原因,M版本已从包中删除,我认为该错误意味着他无法找到升级到这些图像。 When you wipe them out it stop complaining and you do not see them anymore on the list of packages. 当你把它们擦掉时,它就会停止抱怨,而你却不再在包装清单上看到它们了。
In Android Studio: 在Android Studio中:
Settings -> Appearance & Behavior -> System Settings -> Android SDK
为此,请转到Settings -> Appearance & Behavior -> System Settings -> Android SDK
SDK Platform
tab 确保您位于SDK Platform
选项卡中 Try removing the MNC (M Preview) folder from your SDK folder. 尝试从SDK文件夹中删除MNC(M预览)文件夹。
rm -rf ~/Library/Android/sdk/system-images/android-MNC/
or by opening the standalone SDK manager and selecting it and pressing Delete # packages
. 或者打开独立的SDK管理器并选择它并按Delete # packages
。
如果您正在为Android N开发,可以打开SDK Manager并注意Android 7.0(24)下没有“Android SDK文档”。
Unfortunately, I couldn't find a way to get un-wedged from this situation, so I reinstalled Android Studio and the Android SDK. 不幸的是,我无法找到解决这种情况的方法,所以我重新安装了Android Studio和Android SDK。 That unblocked me directly and took less time and hassle than I feared. 这直接解除了我的阻碍,花费的时间和麻烦都比我担心的要少。
I was experiencing the same problem trying to go through Android N: Quick Settings codelab from Google (last updated on June 16, 2016). 我在尝试使用Google的Android N:Quick Settings codelab时遇到了同样的问题(最后更新于2016年6月16日)。 Turned out the sample code had something like this in app's build.gradle file: 原来示例代码在app的build.gradle文件中有这样的东西:
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. 它开始起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.