error in running a app in visual studio - xamarin

firstly I installed visual studio 2015 community. at the end of the installation the android sdk, ios and xamarin studio didn't downloaded correctly Message appeared.
then i was having an offline setup of xamarin studio only so i installed that successfully.
after that i created a new project by FILE->new project-> visual c# -> android ->blank app on visual studio.
now when i RUN it, there are many errors like :
Xamarin.Android for Visual Studio requires Android SDK. Please set Android SDK path on Tools->Options->Xamarin->Android Settings menu.
Since i installed only XAMARIN studio not android sdk, so can i install android sdk again externally just like i installed xamarin studio and if YES then How?

Try Update All the SDK because your project may required higher SDK to build
In Xamarin Studio, Open Tools--->Open Android SDK Manager----->Then install what is missing

Related

Android SDK instance Error

I am not able to open android device manager in visual studio 2017.
Android SDK Instance Error
Android SDK Tools version 25.2.5 is not supported.
Update your Android SDK Tools to version 26.0.0 or newer.
We will open Xamarin Android SDK manager for you.
Where & how update Android SDK Tools to version 26.0.0?
After complete visual studio update not able to get it.
Component Installed Details....
Microsoft Visual Studio Professional 2017
Version 15.8.0
VisualStudio.15.Release/15.8.0+28010.0
Microsoft .NET Framework
Version 4.7.02556
Installed Version: Professional
Xamarin 4.11.0.732 (d15-8#33e83e124)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.14.218 (79f535bdd)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 1.1.113 (e1d02a7)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 9.0.0.18 (HEAD/3d8a28f1a)
Xamarin.Android Reference Assemblies and MSBuild support.

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.
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.
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!
Install the Android SDK. Standalone version, not Android Studio + Android SDK.
Install the 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.
You should be good to go with creating a new project.

Can I open a Xamarin project developed in MAC on Xamarin Studio in Windows?

I have a Xamarin project developed in iOS MAC. I want to continue the development of the same project on Xamarin Studio but on Windows. Is this possible?
Yes you can, keep in mind that when you're downloading Xamarin at windows it always force you to download a visual studio with Xamarin being a plugin (now they're introducing visual studio for Mac too!). if you're insisting to use Xamarin studio on windows go on to your account on Xamarin rather than using the default download button, and see all the version that can be downloaded. Xamarin studio for windows should still be there
You can open an Android project in Xamarin Studio on OSX or Windows. An iOS app will not open in Xamarin Studio on Windows; it has to be opened in Visual Studio. On Windows, Visual Studio should be used over Xamarin Studio.

Missing Android version in Visual Studio after installing SDK

So I'm working on an Android application using Xamarin with Visual Studio Community version. The target platform is Android 7.1, however, after installing the SDK for this platform, Visual Studio does not show the option to target this version. I'm wondering if there is a step I'm missing, although the Xamarin instructions say that it should be available after installing.
If you see on this image of the project properties, I can't choose anything other than Android 6.0
Solution Properties
And I've installed the 7.1 SDK from the Android SDK Manager
Android SDK Manager
Any extra steps or work arounds that you can think of? Thanks!

Mono android not working?

I my visual studio 2010 i add mono android.And i installed android sdk and java sdk.But it always shows
'C:\Users\Dell\AppData\Local\Android\android-sdk\platforms\android-8'.
Ensure you have installed support for this Android platform version in
the Android SDK Manager. C:\Users\Dell\documents\visual studio
2010\Projects\MonoAndroidApplication1\MonoAndroidApplication1\aresgen MonoAndroidApplication1
How to slove this?
Start Android SDK Manager either from inside Visual Studio or from the location "C:\Users\Dell\AppData\Local\Android\android-sdk\tools\android.bat".
Once its done loading packages... checkmark "Android 2.2 (API8)" to install support and your error will be resolved.
Alternatively, if you are not planning to support Android 2.2 and are fine with the latest Android version, then in Visual Studio, go to Project Properties >> Application and change the API to whatever API you want.

Resources