为什么我得到:“没有为此目标安装系统映像”

时间:2018-02-19 21:46:58

标签: android visual-studio xamarin

我在Android模拟器上遇到了麻烦。

我在Windows 10上运行,这是我的环境:

Microsoft Visual Studio Professional 2017 
Version 15.5.6
VisualStudio.15.Release/15.5.6+27130.2027
Microsoft .NET Framework
Version 4.7.02556

Xamarin   4.8.0.760 (fc93f3f5b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin.Android SDK   8.1.5.0 (HEAD/75f8c6838)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   11.6.1.4 (db807ec)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

我的Android SDK平台如下:

enter image description here

和SDK工具是:

enter image description here

在我的模拟器屏幕中,无论我选择哪种设备,都会收到错误消息:   “没有为此目标安装系统映像”。

enter image description here

我清楚地安装了Google ARM系统映像。 我不明白为什么我收到错误信息。 任何帮助将不胜感激。

查尔斯

更新2

我要感谢York Shen和Jon Douglas的帮助。设备模拟器现在可以正常运行......

我安装了英特尔HAXM仿真器加速器。我的控制台脚本是:

enter image description here

我还从SDK工具中选择了加速器:

enter image description here

当我尝试使用模拟器管理器定义新设备时,我现在得到:

enter image description here

显然,我仍然遇到HAXM问题。顺便说一句,如果你告诉我我必须更换计算机的BIOS以使HAXM正常工作,我将放弃Android。

我试图运行默认模拟器,它警告我可以继续,但没有任何加速。出现了一个模拟器,但我的应用程序没有运行。我的应用程序仅在iOS和UWP上运行。

我要花五天时间试图让Android Emulators工作。没有雪茄。我将此与我对iOS模拟器的体验进行了对比。那一个花了我大概半小时才能跑步。它非常干净简单。我正在认真考虑放弃Android的所有软件开发。

3 个答案:

答案 0 :(得分:7)

  

为什么我会收到:“没有为此目标安装系统映像”

正如@Jon Douglas所说,您使用的是AVD Manager的弃用版本,您可以参考docuemnt

  

自Android SDK工具版本26.0.1起,Google已取消对基于UI的AVD和SDK管理器的支持,转而使用新的CLI(命令行界面)工具。

您可以参考我的回答,获得有关如何解决此问题的更详细答案:

Xamarin with Visual Studio not detecting CPU/ABI system image for emulator, even though system images are installed

更新

如果您使用Xamarin SDK Manager和Xamarin Android设备管理器,则需要更新到Android SDK Tools 26.0.1及更高版本(这是Android 8.0 Oreo开发所必需的)。

您可以阅读:Requirements。在您的情况下,请将Android SDK Tools版本升级为26.1.1

enter image description here

更新2:

您需要Installing the Xamarin Android Device Manager,然后点击Device Manager即可启动Tools > Android Emulator Manager

enter image description here

答案 1 :(得分:0)

为了帮助任何人在安装新版本的Visual Studio 2017时为什么会出现问题,这个模拟器看起来与上面的York Shen不同,因为Visual Studio没有将最新版本的AVD Manager捆绑到Visual中Studio 15.6.6(截至4月23日)

答案 2 :(得分:0)

我一直关注@York Shen-MSFT的回答,直到遇到Android SDK工具更新的障碍。我只是从https://developer.android.com/studio/#downloads(仅限命令行工具, sdk-tools-windows-4333796.zip )下载了它们。

tools文件夹的内容复制到C:\Program Files (x86)\Android\android-sdk\tools