[英]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.