In Google Play Console I came across
App size savings using the Android App Bundle-
Your app could be 38.4% smaller if you used the Andro
Please select only 64 bit architecture. armeabi-v7a
arm64-v8a
only.
Properties -> Android Options -> Advanced -> Supported Architecture.
First you need to set the Package format to AAB in your Android Manifest, Set the Build Version for the APP your are going to publish. Then Find the Keystore with your Hash from google and paste it in the same folder your Android Version of the App is. Then open a command Prompt and type the following code.
msbuild -restore AppName.Android.csproj -t:SignAndroidPackage -p:Configuration=Release -p:AndroidKeyStore=True -p:AndroidSigningKeyStore=Keystore.keystore -p:AndroidSigningStorePass=password-p:AndroidSigningKeyAlias=Alias-p:AndroidSigningKeyPass=password
Follow this tutorial for more information.
As stated by Hakiza, above, the command line is the best bet currently to build an Android App Bundle (aab). The only item I would add is to include the command switch for actually generating the bundle. Add the following command switch to the msbuild command: -p:AndroidPackageFormat=aab
.
So, the entire command line would be:
=> msbuild -restore XamAndroidApp.csproj -t:SignAndroidPackage -p:Configuration=Release -p:AndroidKeyStore=True -p:AndroidSigningKeyStore=filename.keystore -p:AndroidSigningStorePass=password -p:AndroidSigningKeyAlias=keyAlias -p:AndroidSigningKeyPass=password -p:AndroidPackageFormat=aab
App bundle now avalaible in Visual Studio 2019 v.16.2
I generated Android App Bundle in xamarin using Developer Command Prompt Visual Studio 2019 v.16.2
msbuild -restore XamAndroidApp.csproj -t:SignAndroidPackage -p:Configuration=Release -p:AndroidKeyStore=True -p:AndroidSigningKeyStore=filename.keystore -p:AndroidSigningStorePass=password -p:AndroidSigningKeyAlias=keyAlias -p:AndroidSigningKeyPass=password
Follow this link for more infos
Hope this help someone