Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have a Xamarin.Forms project in Visual Studio for Mac. When I try to build the Android project, I get the following error message.

"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."

This message claims the mobile app supports armeabi,armeabi-v7a,x86. The message also claims that the device ABI is 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. Since this is all happening within the context of Xamarin and Visual Studio for Mac, any solution needs to be specific to that.

like image 479
Sam Borick Avatar asked Dec 14 '18 17:12

Sam Borick


People also ask

Can I run Android Emulator in Mac?

1. Bluestacks – Windows & macOS. Bluestacks is one of the most popular Android emulators for Windows and is probably the best Android emulator for macOS as well. This emulator is built primarily for mobile gamers and claims to provide a “PC-like” gaming experience for your mobile apps.

Can I use Android Studio emulator in Visual Studio?

Just open up the Visual Studio Emulator for Android entry in your Start Menu, hit play, and the emulator is ready to debug from any IDE. Download the standalone emulator today!

Why is my AVD not working?

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization. 3) Restart Android Studio and then try to start the AVD again.

Can VSCode run Android Emulator?

Step 1: Go to the Extensions button on VSCode and search for Android and iOS Emulator and install it. Note: Change the Emulator path windows address based on the location of the emulator file on your PC but make the Emulator path as default it would be given as default by the VSCode.


1 Answers

I was able to solve this by reading this MS documentation.

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. As far as I can tell this has no ramifications on the build other than it works now.

like image 193
Sam Borick Avatar answered Oct 17 '22 17:10

Sam Borick