简体   繁体   English

Visual Studio for Mac无法部署到兼容的Android模拟器

[英]Visual Studio for Mac can't deploy to compatible android emulator

I have a Xamarin.Forms project in Visual Studio for Mac. 我在Visual Studio for Mac中有一个Xamarin.Forms项目。 When I try to build the Android project, I get the following error message. 当我尝试构建Android项目时,收到以下错误消息。

"You are deploying an app supporting armeabi,armeabi-v7a,x86 ABIs to an incompatible device of ABI armeabi,armeabi-v7a,x86 . You should either create an emulator matching one of your app's ABIs or add armeabi,armeabi-v7a,x86 to the list of ABIs your app builds for." “您正在部署支持armeabi,armeabi-v7a,x86 ABI的应用程序到ABI armeabi,armeabi-v7a,x86的不兼容设备。您应该创建一个匹配您的应用程序的ABI的模拟器或添加armeabi,armeabi-v7a,x86到您的应用为其构建的ABI列表。“

This message claims the mobile app supports armeabi,armeabi-v7a,x86 . 此消息声称移动应用程序支持armeabi,armeabi-v7a,x86 The message also claims that the device ABI is armeabi,armeabi-v7a,x86 . 该消息还声称设备ABI是armeabi,armeabi-v7a,x86

These are the same. 这些都是一样的。 How can they be unsupported, since they are the same? 他们怎么可能不受支持,因为他们是一样的?

I am not able to deploy to any emulator configuration. 我无法部署到任何模拟器配置。

I have seen some apparently related ABI questions, but none of them are related to Xamarin . 我看过一些明显相关的ABI问题,但没有一个与Xamarin有关。 Since this is all happening within the context of Xamarin and Visual Studio for Mac, any solution needs to be specific to that. 由于这一切都发生在Xamarin和Visual Studio for Mac的环境中,因此任何解决方案都需要特定于此。

I was able to solve this by reading this MS documentation . 我能够通过阅读这篇MS文档来解决这个问题。

I had to double click on the android project to open the properties, click android build, and select all architectures listed under the advanced tab. 我不得不双击Android项目打开属性,单击android build,然后选择高级选项卡下列出的所有体系结构。 As far as I can tell this has no ramifications on the build other than it works now. 据我所知,除了它现在的工作之外,它对构建没有任何影响。

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

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