Skip to content Skip to sidebar Skip to footer

How To Use Android App Bundles-dynamic Features With Visual Studio 2017

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 Android App Bundle. The APKs generated from

Solution 1:

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

Solution 2:

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

Solution 3:

Please select only 64 bit architecture. armeabi-v7aarm64-v8a only.

Properties -> Android Options -> Advanced -> Supported Architecture.

Solution 4:

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.

Post a Comment for "How To Use Android App Bundles-dynamic Features With Visual Studio 2017"