Visual Studio分发Xamarin Android APP。错误该API已被弃用,不再可用。 [410]

时间:2019-12-04 09:05:21

标签: android visual-studio xamarin

我使用Visual Studio 2019发布使用Xamarin制作的Android应用程序。

要分发该应用程序,我一直使用可视工作室“ Archive Manager”。

我用经典的“存档...”命令创建APK,然后选择生成的APK,然后单击“分发...”,选择Google Play,签名,帐户,“ Alpha”频道和错误:

  

该API已被弃用,不再可用。 [410]

我该怎么解决?

我可以手动发布,但是这个自动系统非常方便。

非常感谢。

P.S。

我已经阅读了这篇帖子https://github.com/xamarin/Xamarin.Forms/issues/6528 问题是VS2019。 最新版本不起作用。为什么?

此处类似的情况What is "We’ve detected that your app is using an old version of the Google Play developer API" warning in Google Developer Console? 我已经尝试过将项目重新连接到新的API项目,但是什么也没有

有什么想法吗?

所有开始于Google Play商店显示此消息:

  

我们检测到您的应用正在使用旧版本的Google   播放开发人员API。从2019年12月1日开始,此API的版本1和2   将不再可用。在此日期之前更新到版本3。   学到更多:   https://android-developers.googleblog.com/2019/03/changes-to-google-play-developer-api.html

3 个答案:

答案 0 :(得分:1)

现在,我发现的唯一解决方案是手动发布。

Archive Manager>单击所需的apk> Distribute ..> Ad hoc>签名并保存到本地驱动器。

转到Google Play商店>创建新版本>添加APK文件

门票在VS论坛上公开 https://developercommunity.visualstudio.com/content/problem/844304/api-has-been-deprecated-410.html

答案 1 :(得分:0)

只需尝试更新您的Visual Studio版本

答案 2 :(得分:0)

已在16.4.2版本的Visual Studio中发布了修复程序。 更新编辑器,您将可以像以前一样发布。