Mono android not working? - visual-studio-2010

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.

Related

Unable to start XAMARIN's Android Device Manager emulator

I have created android device as indicated in the microsoft documentation, but I get the error below when I want to test the device on Android device Manager :
i have Visual Studio 2017 version 15.7.
are there any proposals at your place ??
And thank you in advance
You need to update the version of your Visual Studio 2017 to 15.8 or later.
Please check the requirements. To use the Android Device Manager, you will need the following items:
Visual Studio 2019 Community, Professional, or Enterprise.
OR Visual Studio 2017 version 15.8 or later is required. Visual
Studio Community, Professional, and Enterprise editions are
supported.
Visual Studio Tools for Xamarin version 4.9 or later.
The Android SDK must be installed (see Setting up the Android SDK for
Xamarin.Android). Be sure to install the Android SDK at its default
location if it is not already installed: C:\Program Files
(x86)\Android\android-sdk.
The following packages must be installed (via the Android SDK
Manager):
Android SDK Tools version 26.1.1 or late, Android SDK Platform-Tools 27.0.1 or later, Android SDK Build-Tools 27.0.3 or later, Android Emulator 27.2.7 or later.
For mroe details, please check the link below.
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/device-manager?tabs=windows&pivots=windows

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.

How to Change Target API Version in Visual Studio 2017 community Xamarin

I have installed VS 2017 Community and created new project and I am getting below error during build
Error:-
project App1 cannot build using Android 6.0 (API Level 23 -
Marshmallow) because Android SDK platform for API Level 23 is not
installed. Either install it in the Android SDK Manager
(Tools->Android->Android SDK Manager...), or change your
Xamarin.Android project to target an API version that is installed
Right click on your project in the solution explorer and select Properties. In the Android Manifest tab you can choose the Target Android Version.
Cannot build using Android 6.0 (API Level 23 - Marshmallow) because Android SDK platform for API Level 23 is not installed.
It is caused when your apps are targeting API Level 23 but you don't have the SDK. (You can always change this setting on your androidmanifest.xml) or right click on your project and select options.
You have to link your Visual Studio with your Android SDK if you already installed the Android SDK.
If you haven't installed any SDK, you can click on Tools -> SDK Manager and install the Android SDK needed for your project.
NB: Don't forget, there are 3 thing you have to consider about the android SDK : Minimum Android SDK, Compile SDK, and Target Android SDK

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!

error in running a app in visual studio

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

Resources