简体   繁体   English

Visual Studio创建Android项目错误

[英]Visual Studio Creating Android project Error

I am new on Xamarin visual studio and I want to develop an android project but I got this error " Object reference not set to an instance of an object" Actually, I see the error JUST for the C# project and JUST for Android! 我是Xamarin Visual Studio的新手,我想开发一个android项目,但出现此错误“对象引用未设置为对象的实例”实际上,我看到C#项目错误,Just Android错误! I can create the project for IOS and Android under F# project!! 我可以在F#项目下为IOS和Android创建项目! but For C# Android I got the error. 但是对于C#Android,我得到了错误。

I have installed Android SDK and JDK and it shows a green check on the Android setting. 我已经安装了Android SDK和JDK,并且在Android设置上显示绿色对勾。

I use visual studio 2012, I tried to reinstall both Xamarin and VIStudio but the error remains. 我使用Visual Studio 2012,尝试重新安装Xamarin和VIStudio,但错误仍然存​​在。 would you help me, thanks? 您能帮我吗,谢谢?

EDIT 编辑

I installed Visual Studio 2017 and it works fine. 我安装了Visual Studio 2017,并且工作正常。

Xamarin doesn't support older versions of VS anymore. Xamarin不再支持VS的旧版本。 The recommendation is to use Visual Studio 2015 or 2017 currently: 建议当前使用Visual Studio 2015或2017:

Xamarin for Visual Studio supports any Visual Studio 2015 or 2017 (Community, Professional, and Enterprise) and non-Express editions of Visual Studio 2013 Update 2. Xamarin for Visual Studio支持任何Visual Studio 2015或2017(Community,Professional和Enterprise)和非Express版本的Visual Studio 2013 Update 2。

https://developer.xamarin.com/guides/cross-platform/getting_started/requirements/#Windows_Requirements https://developer.xamarin.com/guides/cross-platform/getting_started/requirements/#Windows_Requirements

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

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