Android Studio 2.0位置系统映像不一致(Android Studio 2.0 inconsistent location system image)

我已经下载了新的Android Studio 2.0并开始构建我的项目,但它会输出如下错误:

Observed package id 'system-images;android-19;default;x86' in inconsistent location 'C:\Android\sdk\system-images\android-19\x86' (Expected 'C:\Android\sdk\system-images\android-19\default\x86')

I have downloaded the new Android Studio 2.0 and start buildig my project, but it outputs error like this:

Observed package id 'system-images;android-19;default;x86' in inconsistent location 'C:\Android\sdk\system-images\android-19\x86' (Expected 'C:\Android\sdk\system-images\android-19\default\x86')

原文:https://stackoverflow.com/questions/35482479

更新时间:2020-02-19 07:20

最满意答案

当你拥有android sdk的旧结构时会发生这种情况,为了解决这个问题,将api版本的所有系统映像放入名称为default的文件夹中

喜欢这个:

system-image/
android-15/
default/
x86/
armeabi-v7a/
android-19/
default/
x86/
armeabi-v7a/
This happens when you have old structure of android sdk, to solve this issue put all of the system images of an api version into a folder with name of default
Like this:
system-image/
android-15/
default/
x86/
armeabi-v7a/
android-19/
default/
x86/
armeabi-v7a/
2016-05-08

相关问答

这里有同样的错误。 只需打开包管理器并删除/卸载Android M的所有内容 (API 22 MNC预览版)。 无论如何,棉花糖已经不在了。 之后你可能不得不重新启动Android Studio,导致它缓存该检查。 在Marshmallow发布之后,由于某种原因,M版本已经从软件包中删除了,我认为这个错误意味着他无法找到这些图片的升级版本。 当你把它们抹掉时,它会停止抱怨,并且你不会再看到它们在软件包列表中。 在Android Studio中: 通过点击apposite图标或设置(设置 - >外观

...

这似乎是一个错误。 请查看https://code.google.com/p/android/issues/detail?id=206262并报告观察到的行为。 编辑:已在SDK工具25.1.6中修复 After upgrading my operating system from Ubuntu 14.04 to Ubuntu 16.04 the bug disappeared and the Rotate left (Ctrl + Left) and Rotate right (Ctrl Rig

...

打开文件Android Studio安装目录/ bin / idea.properties 添加disable.android.first.run=true结束 重新启动Android Studio 请注意:这将打破补丁更新到下一个版本。 我们现在检查整个安装的完整二进制校验和,以防止各种安装损坏错误以及保留应用程序签名。 因此,请首先制作此文件的副本,并在更新之前将其恢复。 Open file Android Studio setup directory/bin/idea.properties

...

这是正确的行为。 某些更新无法直接修补,您需要使用最新版本下载和替换Android Studio。 你应该: 下载您在页面中看到的.zip文件 将下载的文件解压缩到任意位置 运行/bin/studio(64).exe文件 导入设置 删除旧的Android Studio目录 将提取的目录移动到安装旧Android Studio的位置 也许是可选的:将它重命名(也许它被命名为android-studio)为“Android Studio” 希望这有帮助,我刚刚做了同样的事情。 This is corr

...

您无需下载SDK,只需在gradle中添加此依赖项即可 compile 'com.facebook.android:facebook-android-sdk:4.7.0'

对于4.8.6我不确定它是否已经在maven中心或者你可以尝试它。 You don't need to download the SDK, just add this dependencies in your gradle compile 'com.facebook.android:facebook-android-s

...

转到SDK Manager下载并安装所有SDK平台和SDK工具,这将解决您的问题。 I don't know how, but this problem is connected with Instant Run functionality. I disabled it and all are working fine.

当你拥有android sdk的旧结构时会发生这种情况,为了解决这个问题,将api版本的所有系统映像放入名称为default的文件夹中 喜欢这个: system-image/

android-15/

default/

x86/

armeabi-v7a/

android-19/

default/

x86/

...

即时运行确实可以加速内置的apk,因为它只会更新更改。 但是,我认为第一次构建的速度没有提高。 Instant run does speeds up a built apk, since it only updates changes. However, I think the speed of the first build is not improved.

要使用原始SDK安装目录,请在设置向导中手动编辑它,或单击“...”按钮导航到该目录。 To use your original SDK installation directory, either edit it manually in the setup wizard or click the "..." button to navigate to it.

启动器图标应放在mipmap res\mipmap\triedsohardicon.png 将启动器图标放在Image Asset中,如下所示: 上传并保存png,它将自动放入mipmap。 在Maifest : android:icon="@mipmap/triedsohardicon"

希望这可以帮助。 Launcher Icon should be placed in mipmap res\mipmap\triedsohardicon.png Place your launcher Ico

...