Xamarin studio - 此项目类型需要安装 Xamarin.Android

Xamarin studio - this project type requires Xamarin.Android to be installed

我最近在我的电脑上安装了 Win10、VS2017 Community 和 Xamarin Studio。我的项目是用 VS2017 编写的,当我在 VS2017 的设备上编译和 运行 它时一切正常,但是当我在 Xamarin studio 中打开它时,出现错误 "this project type requires Xamarin.Android to be installed"。我安装了 monodevelop、gtk sharp、build tools fool。在 Android SDK Manager 中,我安装了所有我需要的东西。此外,当我在 Xamarin studio 中按“New solution”时,它不提供“Android project”。 None 我找到的答案对我不起作用。上面提到的所有项目都在 Win7 上完美运行,除了该项目是在 VS2015 Community 中编写的!需要帮忙。提前致谢!

我也运行关注这个问题。我在 Visual Studio 2017 年一直在开发,想切换到 Xamarin Studio 来处理布局,因为设计器和 AXML 智能感知要好得多。

我发现我需要安装一个单独的 Xamarin.Android 包。我是从这个linkhttps://store.xamarin.com/account/my/subscription/downloads下载的。通用安装程序对我不起作用;它只提供安装远程 iOS 模拟器、Xamarin Profiler 和 Xamarin Workbooks,所以我下载了单独的安装程序并解决了问题。

我遇到了同样的错误,搜索结果将我带到了这里。不幸的是,上面的解决方案现在已经过时了。

我最终解决了我的问题,方法是转到首选项 -> 项目 -> SDK 位置 -> Android。它立即显示弹出窗口“SDK 需要修复”。我不得不离开它来下载必要的组件。

仅供参考,Xamarin Studio 现在 Visual Studio Mac。