question

JesseKnott-2239 avatar image
0 Votes"
JesseKnott-2239 asked CherryBu-MSFT edited

Getting error when attempting to run release code but not with debug code.

When I execute my debug version it runs fine, but when I try to compile and run my release code I get this message

 ADB0020: Android ABI mismatch. You are deploying an app supporting 'armeabi-v7a;arm64-v8a' ABIs to an incompatible device of ABI 'x86_64;x86'. You should either create an emulator matching one of your app's ABIs or add 'x86_64' to the list of ABIs your app builds for.

I haven't made any changes I know of.
If I only select x86, x86_64 for the supported architectures, it launches fine. but if I have either of the the arm(x) options selected I get the message. My app requires Android 9 or greater, so do I even need the arm(x) support?

Cheers!

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JesseKnott-2239 From CPU Architectures, Xamarin.Android defaults to armeabi-v7a for Release builds. This setting provides significantly better performance than armeabi. If you are targeting a 64-bit ARM platform (such as the Nexus 9), select arm64-v8a. If you are deploying your app to an x86 device, select x86. If the target x86 device uses a 64-bit CPU architecture, select x86_64. You said that app will works fine when you only select x86, x86_64, I think you don't need to select arm option.


0 Votes 0 ·

0 Answers