android - 如何使用 Xamarin Visual Studio 2015 构建 Android App Bundle?

标签 android visual-studio xamarin visual-studio-2015 xamarin.android

我看到 Google Play 不再支持 apk 格式,它需要 Android App Bundle。

This article说:

To enable support for Android App Bundles, you’ll need to opt-in to the bundle value of the Android Package Format property within your Android options. As you do this, ensure you change your project to a Release configuration as app bundles are intended for release packages only. To do this you can follow these steps:

1. Right click your project, and select Properties.
2. Navigate to Android Options.
3. Change your configuration to Release.
4. Change the Android Package Format to bundle.

Android Package Format image

但我在 Visual Studio 2015 的 Android 选项中找不到该选项。 VS 2015 Android Options image

我想坚持使用 Visual Studio 2015,因为我没有时间升级(而且在旧硬件上升级软件可能会导致延迟,我可能需要购买一台我真的不想要的新笔记本电脑)。 有没有一种方法可以使用 Visual Studio 2015(或使用 Google 的工具?)构建 Android App Bundle,或者我必须在 Windows 上安装 Visual Studio 16.4 或更高版本?

最佳答案

对于 Visual Studio 2019,转到 Xamarin.Android 项目的属性。在“Android 选项”侧面菜单下,为“Android 包格式”选择“bundle ”。

enter image description here

关于android - 如何使用 Xamarin Visual Studio 2015 构建 Android App Bundle?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68804019/

相关文章:

android - 如何使用 CoordinatorLayout 将 admob 横幅放在屏幕底部

visual-studio - 如何从 Visual Studio 调试在 Linux Docker 容器中运行的 .NET Core 应用程序

c# - Xamarin.Forms DisplayAlert - Android 中的重复标题

android - 将图像从 Firebase 存储检索到 recyclerview

android - 在我的 Android 应用程序中接收来电通知

docker - Visual Studio 2022 Docker 调试 - "no symbols have been loaded"

c++ - 用不同的 IDE 编译,但只有一个可以工作!

xamarin - 是否有任何适用于 Xamarin 的 RavenDb 客户端库

ios - 如何在嵌入式 UIImagePickerController 中隐藏导航栏

android - 是否可以在 Debug模式下使用 proguard?