How to use Android App Bundles-Dynamic Features with visual studio 2017

后端 未结 4 513
忘了有多久
忘了有多久 2021-01-02 09:18

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

相关标签:
4条回答
  • 2021-01-02 09:34

    Please select only 64 bit architecture. armeabi-v7a arm64-v8a only.

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

    0 讨论(0)
  • 2021-01-02 09:34

    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.

    0 讨论(0)
  • 2021-01-02 09:49

    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
    
    0 讨论(0)
  • 2021-01-02 09:58

    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

    0 讨论(0)
提交回复
热议问题