如何在Xamarin Forms App上将Google Play开发者API更新到版本3?

Omt*_*guy 16 xamarin.android xamarin xamarin.forms

在此处输入图片说明

在将新APK上传到一个非常简单的APP的GooglePlay时,仅使用Visual Studio 2019 Xamarin.Forms的webview,我在Google Play控制台上遇到以下错误:

“我们检测到您的应用使用的是旧版本的Google Play开发者API。从2019年12月1日起,该API的版本1和2将不再可用。在此日期之前更新为版本3。了解更多信息”

在此处输入图片说明

Nuget软件包:

ID版本ProjectName
--------- -----------
Microsoft.AppCenter.Analytics {2.1.1} xamarin
Xamarin.Essentials {1.1.0} xamarin
Microsoft.AppCenter.Push { 2.1.1} xamarin
NETStandard.Library {2.0.3} xamarin
Microsoft.AppCenter.Crashs {2.1.1} xamarin
Xamarin.Forms {4.0.0.540366} xamarin
Microsoft.AppCenter {2.1.1} xamarin
Microsoft.AppCenter {2.1.1
} fms_xamarin.Android
Microsoft.AppCenter.Analytics {2.1.1} fms_xamarin.Android
Microsoft.AppCenter。崩溃{2.1.1} fms_xamarin.Android Microsoft.AppCenter。推送{2.1.1} fms_xamarin.Android
Xamarin.Forms {4.0.0.540366} fms_xamarin.Android
Xamarin.Android.Support.Design {28.0.0.1} fms_xamarin.Android
Xamarin.Android.Support.v7.AppCo ... {28.0.0.1} fms_xamarin.Android
Xamarin.Android.Support.v4 {28.0.0.1} fms_xamarin.Android
Xamarin.Android.Support.v7.CardView {28.0.0.1} fms_xamarin .Android
Xamarin.Android.Support.v7.Media ... {28.0.0.1} fms_xamarin.Android
Xamarin.Android.Support.Core.Utils {28.0.0.1} fms_xamarin.Android
Xamarin.Android.Support.CustomTabs {28.0.0.1 } fms_xamarin.Android
Xamarin.Essentials {1.1.0} fms_xamarin.Android
Xamarin.GooglePlayServices.Base {60.1142.1} fms_xamarin.Android
Xamarin.GooglePlayServices.Basement {60.1142.1} fms_xamarin.Android

如何按照Google的要求更新SDK?

Jer*_*lle 1

为可能偶然发现此线程的人添加此答案:

此问题已在最新版本的 Visual Studio 2019 中修复,因此您只需将 Visual Studio 版本更新到最新版本即可。