android - Xamarin 形成 Android 目标 API 级别警告

标签 android xamarin.forms google-play

最近几天,每当我将新的 Xamarin Forms 应用程序部署到 Google Play 商店时,我都会从 Play 商店收到以下警告:

Your app currently targets API level 15 and must target at least API level 26 to ensure it is built on the latest APIs optimised for security and performance.

From August 2018, new apps must target at least Android 8.0 (API level 26).

From November 2018, app updates must target Android 8.0 (API level 26).

但目标 Android 版本设置为“自动 - 用户目标框架版本 (API 27)”,而最低 Android 版本为“覆盖 - Android 4.0.3(API 级别 15)”。

我不认为从 2018 年 8 月开始,Google Play 商店只允许 Android 8 或更高版本的应用,对吧?所以目前我当然可以忽略警告,但我需要为 8 月更改什么?

非常感谢!

最佳答案

与 Xamarin 的直觉相反,当您将目标 SDK 设置为使用最新版本时,它实际上以最低版本为目标。您需要将目标SDK设置为特定版本。

换句话说,从“自动”更改为特定版本。

更多信息在这里:

https://github.com/xamarin/xamarin-android/issues/1163

关于android - Xamarin 形成 Android 目标 API 级别警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50367244/

相关文章:

android - 在 Android 上为 SaaS 使用外部支付处理器,而不是 Google Play 应用内结算

android - 无法解析主机 "www.googleapis.com":No address associated with hostname Android Studio Messanger Project

android - 如何将文本从 Activity 发送到 WallpaperService 类

android - 错误的 Xamarin 形成图像维度

c# - 以编程方式创建 SQLite 表

android - faSTLane:[!] Google Api 错误:无效请求 - 找不到包:com.example.todo

android - 在 span 中隐藏字符串内容

android - Google Ad Manager AdListener#onAdClicked() 回调未触发

android - Xamarin Forms - 如何向 MasterDetailPage 的顶部栏添加额外的控件?

android - 设备支持警告 : Google play 2019