我有一台带有Windows 10的新计算机,并安装了VisualStudio2017和Xamarin (都是通过2018年3月的VisualStudio2017安装程序安装),所有的系统要求都是完全匹配的。我可以做一些编码,它将在模拟器上运行。但是,我想使用Xamarin.Forms预览器,因为“出现了问题。连接关闭了”,所以我无法使用它。此外,我还想将Android版本设置为6.0。我安装了所有的API到Android5.0),但是除了API 25/努gat7.1之外,我不能选择一个API。当我进入AVD时,我无法创建一个新的设备(OK按钮被禁用),因为“这个目标没有CPU/ABI系统映像”。
有人能为Xamarin和其他所需的安装/设置提供一个很好的教程吗?我在YouTube中搜索,但只找到已经安装/设置所有内容的视频。我在这里研究了一些类似的关于堆叠溢出的问题,但我认为它们有点过时(2016年3月/2017年5月)。
谢谢你的帮助。汤姆斯
=============================================
更新:下面的Billys链接我可以修复预览器问题(卸载任何非64位版本的java),并可以为所需的API级别设置AVDs (下载CPU/ABI图片)->谢谢比利。
但是,在构建时,我会收到以下警告:
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)的情况下消除这些警告?
发布于 2018-03-19 18:22:08
但是,我想使用Xamarin.Forms预览器,因为“出现了问题。连接关闭了”,所以我无法使用它。
对于这个问题,我认为您可以尝试更新jdk。您可以参考以下链接:
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没有安装某些Image。
例如ARM EABI v7a系统映像和Intel x86原子系统映像。
最好使用新的AVD管理器:Xamarin Android设备管理器。您可以参考这个链接获得更多的信息。
下面是安装xamarin:https://learn.microsoft.com/en-us/xamarin/cross-platform/get-started/installation/windows的链接
https://stackoverflow.com/questions/49371448
复制