简体   繁体   中英

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. 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...

用西班牙语

I also cannot find Xamarin SDK manager in Individuals Components as say here:

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

在西班牙语中 And also I get these errors in Tools/Options/Xamarin:

The package "DesignerPackage" did not load correctly.

The package "MonoAndroidDesignerPackage" did not load correctly.

在此处输入图片说明

I reinstalled Xamarin, Restore and Repair Visual Studio and nothing works.

I had a similar problem and it was fixed by downloading JDK8 (I had JDK9 on my machine and had to delete it). What version JDK are you using?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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