【问题标题】:Issue in generating the Release APK in Visual Studio for Xamarin.Form Application在 Visual Studio 中为 Xamarin.Form 应用程序生成发布 APK 的问题
【发布时间】:2018-12-17 10:53:45
【问题描述】:

我正在开发Xamarin.Form 应用程序(Android 和 iOS)。想生成发布模式的APK文件上传到Google Play商店。

我已按照this Microsoft docs文章的指示&低于Exception

Google Play 商店:授权:类型初始化器 'Google.Apis.Json.NewtonsoftJsonSerializer' 抛出异常

我已经尝试过以下事情

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

请检查一下

【问题讨论】:

  • 您使用的是什么版本的 Visual Studio?您应该使用 15.8 或更高版本。
  • 更新到 VS2017 15.9,解决了这个问题。
  • 我使用的是 5.7.3 版本

标签: android xamarin xamarin.forms xamarin.android apk


【解决方案1】:

作为一种解决方法,您应该能够制作一个临时 .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,因为报告的许多问题都涉及旧版本。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-04
    • 2017-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多