gpt4 book ai didi

android - 在 Visual Studio 中为 Xamarin.Form 应用程序生成 Release APK 时出现问题

转载 作者:行者123 更新时间:2023-11-29 02:23:17 25 4
gpt4 key购买 nike

我正在处理 Xamarin.Form 应用程序(Android 和 iOS)。想要在 Release模式下生成 APK 文件以上传到 Google Play 商店。

我已按照 this Microsoft docs 的说明进行操作article & getting below 异常

Google Play Store: Authorize: The type initializer for 'Google.Apis.Json.NewtonsoftJsonSerializer' threw an exception

我已经尝试过以下事情

  • 清理我的整个解决方案。
  • 删除并重新添加了 Newtonsoft.Json 包(尝试使用旧版本和新版本)
  • 在跳过链接中添加了 Newtonsoft.Json dll属性中 Android 选项下的程序集。

请检查这个

enter image description here

最佳答案

作为解决方法,您应该能够制作一个临时 .APK 并将其上传到 Google Play。

https://developer.xamarin.com/guides/android/deployment,testing,_and_metrics/publishing_an_application/part_3-_publishing_an_application_on_google_play/manually-uploading-the-apk/

我建议升级 Visual Studio,因为报告的许多问题都与旧版本有关。

关于android - 在 Visual Studio 中为 Xamarin.Form 应用程序生成 Release APK 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53813702/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com