简体   繁体   English

如何在Visual Studio Community 2015中为Android更新Xamarin

[英]How to update Xamarin for Android within Visual Studio Community 2015

I've recently installed Visual Studio Community 2015 and I've been following an MSDN tutorial "Build cross-platform apps with Xamarin" . 我最近安装了Visual Studio Community 2015,并且一直在遵循MSDN教程“使用Xamarin构建跨平台应用程序” When its time to design the look of the app and I select the Main.axml file in the Resources\\layout folder, the Android designer fails with: 当需要设计应用程序外观并在Resources \\ layout文件夹中选择Main.axml文件时,Android设计器将失败并显示以下信息:

The installed Android SDK is too old. 安装的Android SDK过旧。 Version 24.3.4 or newer is required. 需要版本24.3.4或更高版本。 Please update to the latest version. 请更新到最新版本。

I've done a lot of searching and found that one of the newer versions of Android SDK caused the Xamarin Android designer to fail. 我进行了大量搜索,发现其中一个较新版本的Android SDK导致Xamarin Android设计器失败。 I did find a version 24.4.1 that suggests this designer problem is fixed. 我确实找到了24.4.1版本,该版本表明此设计器问题已修复。

How do I update this part of Visual Studio (ie Xamarin.Android)? 如何更新Visual Studio的这一部分(即Xamarin.Android)? Here is a snippet of my install on Windows 7: 这是我在Windows 7上安装的片段: 在此处输入图片说明

Tools --> Options --> Xamarin 工具->选项-> Xamarin

Under "iOS Settings" and "Android Settings" there is a link for "Check Now" next to the Updates settings 在“ iOS设置”和“ Android设置”下,更新设置旁边有一个“立即检查”链接

在此处输入图片说明

You might want to update to Beta release if you need the latest components - 如果您需要最新的组件,则可能需要更新到Beta版本-

Goto VS 2015 -> Tools -> Option -> Xamarin -> Others -> Check Now 转到VS 2015->工具->选项-> Xamarin->其他->立即检查

在此处输入图片说明

They moved the "Check Now" into the harder-to-find Tools/Options/Xamarin/Other . 他们将“立即检查”移到了更难找到的Tools/Options/Xamarin/Other We must always be on guard when dealing with the 我们必须始终保持警惕

Other 其他

注意激动人心的新位置

In newer Version of Visual studio this option is available in Other node 在较新版本的Visual Studio中,此选项在“ Other节点中可用

Goto VS 2015 -> Tools -> Options -> Xamarin -> Other -> Check Now 转到VS 2015->工具->选项-> Xamarin->其他->立即检查

在此处输入图片说明

Here you can choose between Alpha, Beta or Stable versions of xamarin for Visual Studio . 在这里,您可以选择xamarin for Visual Studioxamarin for Visual Studio Alpha,Beta或稳定版本。

Apparently, my problem was solved after installing SDK Platform for Android 6.0 or API 23. API 24 or higher ie Android 7.0 (Nougat) didnt run. 显然,安装适用于Android 6.0或API 23的SDK平台后,我的问题得以解决。未运行API 24或更高版本(即Android 7.0(牛轧糖))。 If still not solved then install SDK Platform for even lower APIs like 22,21 ... Hope it helps. 如果仍未解决,请为更低的API(例如22,21)安装SDK平台……希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM