带有 Visual Studio 的 Xamarin 未检测到模拟器的 CPU/ABI 系统映像,即使已安装系统映像 [英] Xamarin with Visual Studio not detecting CPU/ABI system image for emulator, even though system images are installed

查看:41
本文介绍了带有 Visual Studio 的 Xamarin 未检测到模拟器的 CPU/ABI 系统映像,即使已安装系统映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Xamarin 与 Visual Studio 2017 一起使用,但在让模拟器与 API 版本 25 一起工作时遇到了很多麻烦.

我已安装系统映像,但模拟器管理器未检测到它们以设置 AVD.

以下是一些截图:

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

由于此更改,您必须使用 Xamarin SDK 管理器Xamarin Android Device Manager 当您更新到 Android SDK 工具 26.0.1 及更高版本(Android 8.0 Oreo 开发需要).

I'm using Xamarin with Visual studio 2017 and I'm having a lot of trouble getting an emulator to work with API version 25.

I have the system images installed, but the Emulator Manager does not detect them for setting up an AVD.

Here's some screenshots: Android SDK Screenshot, all images are installed

Android Emulator Manager Screenshot, cannot detect CPU/ABI system image

I've tried reinstalling visual studio and xamarin, reinstalling the sdks, repairing visual studio, reinstalling everything again, etc. What do?

解决方案

@Jon Douglas already given the answer, I just post a more detailed answer in order to help people who has the same problem.

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

As Jon Douglas said, it would be best to upgrade to the latest tools as Google recently deprecated these old GUI programs. Here are two solutions to solve your problem.

Solution 1 :

I would recommend you try installing Android Studio, and you can share the already installed Android SDK so it will not download again.

    1. Install Android Studio, the Official IDE for Android.

    1. Create a blank project and open it.

    1. Change Android SDK Path.
      • a. Go to File -> Project Structure
      • b. Change the SDK location to your Visual Studio SDK Location
        • I. Default Xamarin Android SDK Location is C:Program Files (x86)Androidandroid-sdk, you could find it in VS : Tools -> Options -> Xamarin -> Android Settings
        • II. There is a problem when you change the SDK Location: cannot contain whitespace. You could open CMD as Administrator and type: mklink /J C:Program-Files-(x86) "C:Program Files (x86)", like this.
        • III. Then you could change the SDK Location, effect.

    1. In Android Studio, go to: Tools -> Android -> AVD Manager -> Create Virtual Device, see if it works to create a virtual device with system images you have installed.

Solution 2 :

Try using the new AVD Manager: Xamarin Android Device Manager.

Update:

What tools in particular?

I mean the latest version of Xamarin Android Device Manager.

As of Android SDK Tools version 26.0.1, Google has removed support for their UI-based AVD and SDK managers in favor of their new CLI (Command Line Interface) tools.

Because of this change, you must use the Xamarin SDK Manager and Xamarin Android Device Manager when you update to Android SDK Tools 26.0.1 and later (which is required for Android 8.0 Oreo development).

这篇关于带有 Visual Studio 的 Xamarin 未检测到模拟器的 CPU/ABI 系统映像,即使已安装系统映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆