【问题标题】:Good installation guide for Xamarin on VS2017VS2017 上 Xamarin 的良好安装指南
【发布时间】:2018-03-19 20:01:28
【问题描述】:

我有一台装有 Windows 10 的新计算机,并安装了带有 Xamarin 的 Visual Studio 2017(全部通过 2018 年 3 月的 Visual Studio 2017 安装程序),所有系统要求都非常匹配。我可以做一些编码,它将在模拟器上运行。但是,我想使用 Xamarin.Forms Previewer,但由于“出现问题。连接已关闭”而无法使用。 此外,我想将 Android 版本设置为 6.0。我将所有 API 安装到 Android 5.0)但我无法选择 API 25/Nougat 7.1 以外的 API。当我转到 AVD 时,由于“没有可用于此目标的 CPU/ABI 系统映像”,我无法创建新设备(确定按钮被禁用)。

任何人都可以为 Xamarin 和其他所需的安装/设置提供一个很好的教程吗?我在 YouTube 上进行了搜索,但只找到了已经安装/设置所有内容的视频。我在 stackoverflow 上查看了一些类似的问题,但我认为它们有点过时(2016 年 3 月/2017 年 5 月)。

感谢您的帮助。 汤姆斯

==============================================

更新: 按照 Billys 链接,我可以修复 Previewer 问题(卸载任何非 64 位版本的 java)并可以为所需的 API 级别设置 AVD(下载 CPU/ABI 图像)--> 谢谢 Billy

但是,在构建时我收到以下警告:

2>C:\Users\Thoms\Documents\Visual Studio 2017\Projects\testXamarin3\testXamarin3\testXamarin3.Android\testXamarin3.Android.csproj : warning XA0105: The $(TargetFrameworkVersion) for FormsViewGroup.dll (vv8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.0). You need to increase the $(TargetFrameworkVersion) for your project.
2>C:\Users\Thoms\Documents\Visual Studio 2017\Projects\testXamarin3\testXamarin3\testXamarin3.Android\testXamarin3.Android.csproj : warning XA0105: The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll (vv8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.0). You need to increase the $(TargetFrameworkVersion) for your project.
2>C:\Users\Thoms\Documents\Visual Studio 2017\Projects\testXamarin3\testXamarin3\testXamarin3.Android\testXamarin3.Android.csproj : warning XA0105: The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll (vv8.0) is greater than the $(TargetFrameworkVersion) for your project (v7.0). You need to increase the $(TargetFrameworkVersion) for your project.

有没有办法在不增加我项目的目标框架的情况下消除这些警告(例如减少 Xamarin.Forms.Platform.dll TargetFrameworkVersion)?

【问题讨论】:

    标签: android xamarin xamarin.android visual-studio-2017


    【解决方案1】:

    但是,我想使用 Xamarin.Forms 预览器,但由于“出现问题。连接已关闭”而无法使用。

    对于这个问题,我认为你可以尝试更新 jdk。 您可以参考以下链接:
    Xamarin.Forms Previewer "Connection is closed"
    https://forums.xamarin.com/discussion/85221/there-was-an-internal-issue-with-the-rendering-process
    https://forums.xamarin.com/discussion/78018/xamarin-forms-previewer-isnt-showing

    “没有可用于此目标的 CPU/ABI 系统映像”

    这通常意味着您选择的 Api 没有安装某些图像。
    例如 ARM EABI v7a 系统映像和 Intel x86 Atom 系统映像。
    最好使用新的 AVD 管理器:Xamarin Android Device Manager。 您可以参考此link 了解更多信息。

    这里是安装 xamarin 的链接: https://docs.microsoft.com/en-us/xamarin/cross-platform/get-started/installation/windows

    【讨论】:

      猜你喜欢
      • 2012-02-23
      • 1970-01-01
      • 1970-01-01
      • 2019-12-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多