jjzjj

android - 如何使用 Android App Bundles-Dynamic Features with visual studio 2017

coder 2023-12-05 原文

我在 Google Play Console 中遇到了

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 the app bundle give your users smaller, more optimized downloads. Learn how

This calculation is based on your latest production release and the XXHDPI ARMv7 device configuration.

这一切都是为了减少 apk 文件的大小,它声称有很多好处,比如让应用程序更小,为用户提供他们需要的功能和配置,通过消除构建和发布多 APKs 的需要来降低开发复杂性。很少。

我们可以用 visual studio 为 Xamarin 开发同样的东西吗?

最佳答案

App bundle 现在可在 Visual Studio 2019 v.16.2 中使用

我使用 Developer Command Prompt Visual Studio 2019 v.16.2 在 xamarin 中生成了 Android App Bundle

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

关注这个link了解更多信息

希望这对某人有帮助

关于android - 如何使用 Android App Bundles-Dynamic Features with visual studio 2017,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52715205/

有关android - 如何使用 Android App Bundles-Dynamic Features with visual studio 2017的更多相关文章

随机推荐