object reference not set to an instance of an object upon creating a new Android project
object reference not set to an instance of an object upon creating a new Android project
I get this when I want to create a new Android project.

1 Answer
1
Make sure Android Studio is not installed on your computer. If it is, uninstall it and run the Visual Studio installer again until all Android SDK errors go away.
Android Studio
Android SDK
Make sure Visual Studio is closed and install the most recent stable version of Xamarin for Visual Studio . I found it here: https://store.xamarin.com/account/my/subscription/downloads. (Trying to install it through VS didn't work for me under Tools -> Android -> Settings -> Xamarin for Visual Studio Updates.)
Make sure you have Java SDK version 7 installed on your machine. You also must use the 32-bit version even if you have a 64-bit machine. This was key!
Java SDK
Install the Android SDK. Standalone version, not Android Studio + Android SDK.
Android SDK
Install the Android NDK.
Android NDK
Restart your computer and open Visual Studio. Go to Tools -> Android -> Settings and set the correct paths to Android SDK, NDK and Java SDK.
Android SDK
NDK
Java SDK
You should be good to go with creating a new project.
You absolutely do NOT have to uninstall Android Studio... In fact you can use Android Studio to update the Android SDK, just point both IDEs at the some Android SDK location. Also the latest Android SDK version (and Xamarin's tools) work fine w/ Java 64-bit.
– SushiHangover
Jul 1 at 17:37
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I did it, but not done
– Grand Boy
Jul 1 at 17:14