简体   繁体   English

无法在Visual Studio Xamarin工具中创建Android虚拟设备

[英]Unable to create Android Virtual Device in Visual Studio Xamarin Tools

I have a Virtualbox VM with Windows 10 and 我有一个Windows 10和Windows 10的Virtualbox VM

Microsoft Visual Studio Community 2017 Preview Version 15.6.0 Preview 5.0 VisualStudio.15.Preview/15.6.0-pre.5.0+27413.0 Microsoft .NET Framework Version 4.7.02558 Microsoft Visual Studio社区2017预览版15.6.0预览版5.0 VisualStudio.15.Preview / 15.6.0-pre.5.0 + 27413.0 Microsoft .NET Framework版本4.7.02558

with Xamarin Tools for VS 使用Xamarin Tools for VS.

Xamarin 4.9.0.730 (c06c7fdd0) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. Xamarin 4.9.0.730(c06c7fdd0)Visual Studio扩展,支持Xamarin.iOS和Xamarin.Android的开发。

Xamarin Designer 4.10.53 (0f268fa65) Visual Studio extension to enable Xamarin Designer tools in Visual Studio. Xamarin Designer 4.10.53(0f268fa65)Visual Studio扩展,用于在Visual Studio中启用Xamarin Designer工具。

Xamarin.Android SDK 8.2.0.12 (HEAD/413eed680) Xamarin.Android Reference Assemblies and MSBuild support. Xamarin.Android SDK 8.2.0.12(HEAD / 413eed680)Xamarin.Android参考组件和MSBuild支持。

Xamarin.iOS and Xamarin.Mac SDK 11.8.0.18 (4c56cbb) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support. Xamarin.iOS和Xamarin.Mac SDK 11.8.0.18(4c56cbb)Xamarin.iOS和Xamarin.Mac参考程序集和MSBuild支持。

I know that I can't run x86 base emulator in a VM, but what I am trying to achieve is to run an arm base emulator which should be possible as it doesn't need hardware acceleration. 我知道我不能在VM中运行x86 base仿真器,但我想要实现的是运行一个arm base仿真器,这应该是可能的,因为它不需要硬件加速。

However, trying to create a new AVD (any AVD) always fails. 但是,尝试创建新的AVD(任何AVD)始终会失败。 Below some screenshots showing the Android setup and the errors 下面是一些显示Android设置和错误的屏幕截图

Android SDK Manager

Android SDK Manager

Android模拟器管理器

Android模拟器管理器

Finally the Log Report 最后是日志报告

EDIT: Please note that I am not asking for workarounds or advice (at this stage at least). 编辑:请注意,我不是要求解决方法或建议(至少在此阶段)。

  • I know that non accelerated emulators are slow 我知道非加速仿真器很慢
  • I know that there are potential workarounds (Android Studio AVD manager, CLI avdmanager...) 我知道有潜在的解决方法(Android Studio AVD管理器,CLI avdmanager ......)

I am using a tooling (Visual Studio + Xamarin Tools for Visual Studio) which is supposed to work in a certain way, but it doesn't seem to. 我正在使用一种工具(Visual Studio + Xamarin Tools for Visual Studio),它应该以某种方式工作,但它似乎没有。 Either I am doing something wrong, or there is a bug somewhere. 我做错了什么,或者某处有错误。 So I expect answers like: 所以我希望答案如下:

"This is a known issue of ..... and will be solved in a future release of the product" or “这是.....的一个已知问题,将在未来的产品版本中解决”或

"Your setup is incorrect, change to ...." or “您的设置不正确,请更改为....”或

"What you are doing is not supported, see ...." “你所做的事情不受支持,见......”

From my experience i wouldn't recommend running any emulators within the VM, try and run the AVD on your host machine and connect it to the VM. 根据我的经验,我不建议在VM中运行任何模拟器,尝试在主机上运行AVD并将其连接到VM。 Example using genymotion 使用genymotion的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM