androidmaui

Android Maui app "Doesn't support required ABI" - How do you set the supported architectures?


When I attempt to release my Xamarin-turned-MAUI app on Google Console, it tells me that I'll be losing roughly half my audience because

Doesn't support required ABI (6,575 devices) arm64-v8a x86_64

How do I fix this?

In Xamarin there was a "supported architectures" dialog, but that appears to be gone now. The closest thing I can find is "App Properties --> Build --> Platform Target", but if you set that to "Any CPU", Visual Studio automatically sets it back to "ARM64".

I found this MS documentation which says you can edit the "Supported Architectures" (an option which doesn't appear to exist), or add

<AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>

That latter option makes my release build take 3x as long, but didn't solve the problem.


Solution

  • I was facing the same issue. After looking at my Xamarin Forms project I also added

    <AndroidSupportedAbis>armeabi-v7a;x86;x86_64;arm64-v8a</AndroidSupportedAbis>
    

    And just like your situation, it didn't work. Copilot suggested the following, which is a statement that should be equivalentIt to the line above. But you should not add both.

    
    <RuntimeIdentifiers>android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>
    

    After replacing it with this RuntimeIdentifiers statement it seemed to fix the problem.

    I find it a a bit weird that this important settings is something you can not set through the ui.