Search code examples
androidvisual-studioxamarinapkgoogle-play-console

How to optimize apk per ABI when using xamarin and visual studio?


I have a xamarin forms solution with visual studio 2019 on mac. I try to publish my apk on google play console but it says that they are Unoptimised APK.

In visual studio, I went to Android project options > Android Build. In release configuration, I checked Generate one package (apk) per select ABI. In the advanced tab, I checked the 4 supported ABI. Then I published and then uploaded 4 apks to google play console.

It doesn't seem to be enough, the website advises me to: - Use the Android App Bundle to automatically optimise for device configurations (Not sure it is supported for xamarin solution) - or manage it yourself with multiple APKs (which I did with no success)

I cannot ignore the warning, the button to go to next step is grayed.


Solution

  • New in Visual Studio 2019 for windows 16.4 and for Mac 8.4 added support for building android app package aab format

    enter image description here