简体   繁体   English

Xamarin-无法创建android Black应用:“对象引用未设置为对象的实例”

[英]Xamarin - Cannot create android Black app : “Object reference not set to an instance of an object”

Week ago I upgrade my Visual Studio 2017, and now I'm unable to create an Android app in Xamarin. 一周前,我升级了Visual Studio 2017,但现在无法在Xamarin中创建Android应用。 I have some problems and I dont know whats the main. 我有一些问题,我不知道主要是什么。

When I create the Blank app only the folder is create and I get this error: 当我创建空白应用程序时,仅创建文件夹,并且出现此错误:

    Object reference not set to an instance of an object

As I read here: Object refrence not set to an instance of an object When I create new Android App (Visual Studio) and others posts the solution is upgrade the SDK but I can't even do that because my Tools dont contain anymore Tools/Android... 正如我在此处阅读的内容: 对象引用未设置为对象的实例当我创建新的Android应用(Visual Studio)并发布其他消息时,解决方案是升级SDK,但是我什至无法这样做,因为我的工具不再包含工具/ Android ...

用西班牙语

I also cannot find Xamarin SDK manager in Individuals Components as say here: 我也无法在个人组件中找到Xamarin SDK管理器,如下所示:

https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-sdk?tabs=vswin https://docs.microsoft.com/zh-cn/xamarin/android/get-started/installation/android-sdk?tabs=vswin

在西班牙语中 And also I get these errors in Tools/Options/Xamarin: 而且我在工具/选项/ Xamarin中得到了这些错误:

The package "DesignerPackage" did not load correctly. 软件包“ DesignerPackage”没有正确加载。

The package "MonoAndroidDesignerPackage" did not load correctly. 软件包“ MonoAndroidDesignerPackage”未正确加载。

在此处输入图片说明

I reinstalled Xamarin, Restore and Repair Visual Studio and nothing works. 我重新安装了Xamarin,还原和修复Visual Studio,但没有任何效果。

I had a similar problem and it was fixed by downloading JDK8 (I had JDK9 on my machine and had to delete it). 我有一个类似的问题,可以通过下载JDK8来解决(我的计算机上有JDK9,必须删除它)。 What version JDK are you using? 您正在使用什么版本的JDK?

暂无
暂无

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

相关问题 Xamarin Android应用程序无法正常工作(错误:未将对象引用设置为对象的实例) - Xamarin Android App not working (Error: Object reference not set to an instance of an object) Xamarin Android KitKat对象引用未设置为对象的实例 - Xamarin Android KitKat Object reference not set to an instance of an object 未将NetworkInfo.IsConnected对象引用设置为xamarin上的对象实例 - NetworkInfo.IsConnected Object reference not set to an instance of an object on xamarin 对象引用不是设置为对象的实例,而是吗? - Object reference not set to an instance of an object, but is? 对象引用未设置为对象的实例 - Object reference not set to an instance of object 创建新的Android项目时,对象引用未设置为对象的实例 - object reference not set to an instance of an object upon creating a new Android project Xamarin Forms MainActivity OnCreate LoadApplication System.NullReferenceException:对象引用未设置为对象的实例 - Xamarin Forms MainActivity OnCreate LoadApplication System.NullReferenceException: Object reference not set to an instance of an object Xamarin.Forms iOS 构建错误 Object 引用未设置为 object 的实例 - Xamarin.Forms iOS build error Object reference not set to an instance of an object ODAC:对象引用未设置为对象的实例 - ODAC: Object reference not set to an instance of an object 编译时“对象引用未设置为对象的实例” - 'Object reference not set to an instance of an object' at compile time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM