Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I Xamarin installed in visual studio 2015.
Through a new option in visual studio 2015 when I create an Android project, the following error message.

"object reference not set to an instance of an object"

In addition, the SDK-Manager in the photo below I do not see this is a problem or not. But none of the following messages created will not install android api level.

HTML
Preparing to install archives
Downloading Android SDK Tools, revision 25.2.2
Download finished with wrong size. Expected 301642481 bytes, got 1487 bytes.
Downloading SDK Platform Android 5.1.1, API 22, revision 2
Download interrupted: Unexpected HTTP Status 416
Downloading Sources for Android SDK, API 22, revision 1
Download interrupted: Unexpected HTTP Status 416
Skipping 'Android TV ARM EABI v7a System Image, Android API 22, revision 1'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Android TV Intel x86 Atom System Image, Android API 22, revision 3'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Android Wear ARM EABI v7a System Image, Android API 22, revision 7'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Android Wear Intel x86 Atom System Image, Android API 22, revision 7'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'ARM EABI v7a System Image, Android API 22, revision 1'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Intel x86 Atom_64 System Image, Android API 22, revision 5'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Intel x86 Atom System Image, Android API 22, revision 5'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Google APIs ARM EABI v7a System Image, Android API 22, revision 10'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Google APIs Intel x86 Atom_64 System Image, Android API 22, revision 10'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Google APIs Intel x86 Atom System Image, Android API 22, revision 10'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Skipping 'Google APIs, Android API 22, revision 1'; it depends on 'SDK Platform Android 5.1.1, API 22, revision 2' which was not installed.
Done. Nothing was installed.


link image(status SDK-Manager)

What I have tried:

when I create an Android project in visual studio, error message.
Posted
Updated 20-Oct-16 5:00am

1 solution

It is clear from the first few messages that something has gone wrong while you tried to download the SDK components, so you do not have a valid installation. You will never be able to create a project until you fix that.
 
Share this answer
 
Comments
me64 20-Oct-16 11:24am    
How do I fix?
Afzaal Ahmad Zeeshan 20-Oct-16 11:40am    
Reinstall the SDK. There is some sort of network related problem going on. You can start the SDK separately and install the binaries first. Then later on, try using the project creator.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900