Android SDK instance Error - visual-studio

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.

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

Xamarin SDK in Visual Studio

Visual Studio can have multiple Extension SDKs which are used to ease the development.
Is Xamarin SDK belongs to one of those Extension SDKs of Visual Studio
IDE?
Xamarin SDK is an open-source framework to develop mobile application. And it is bundled as a free tool within Microsoft Visual Studio's integrated development environment.
To answer your question, Yes Xamarin SDK is a part of SDKs in Visual Studio.
Visual Studio use the NuGet Package Manager to Install and manage packages(Like the Xamarin SDK and other Extension SDKs you mentioned in your question).
Those packages are added to your project and you can use them to develop your project.
Xamarin is installed by default if you create a Xamarin.forms project in Visual-Studio.
Xamarin is shipped as a Visual Studio Workload. Although this documentation page doesn't show the individual SDK packages, they are included in the component: Component.Xamarin.
i.e. Xamarin.Android.Sdk / Xamarin.VisualStudio.Apple.Sdk / etc
If you installed Visual Studio 2019 and watched the installer, you'd see the names of these packages as they progress!
Otherwise you can just go into Visual Studio and click on Help -> About Visual Studio and see all of the various packages!

How to check Mono Version in Visual Studio 2017 in Windows 10?

I want to know which Mono version my project uses. How can I check it?
In my project I have Mono.Android DLL. I have right clicked on it and review property. It says Runtime Version: 4.0.3. If I go to location of that DLL, I am getting this location: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v6.0\Mono.Android.dll
I am confused with what is version of Mono. And what is Mono.Android. Please help me
Following information I got from Help --> About Visual Studio
Microsoft Visual Studio Enterprise 2017
Version 15.5.4
VisualStudio.15.Release/15.5.4+27130.2024
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Enterprise
Visual Basic 2017
Microsoft Visual Basic 2017
Visual C# 2017
Microsoft Visual C# 2017
Mono Debugging for Visual Studio 4.8.4-pre (3fe64e3)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Visual Studio Tools for Universal Windows Apps 15.0.27130.2020
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 4.8.0.757 (7f9ec2a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.8.188 (c5813fa34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.1.3.0 (HEAD/ef47226b7)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.6.1.2 (6857dfc)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
You don't have Mono android integrated with visual studio so you can't find it from
Help --> About Visual Studio.
There is no more monoDoid now it becomes Xamarin.Android.
Xamarin.Android applications run within the Mono execution environment which it takes with it onto the device. Thus, an application package is an obvious way in which we can get this done. So mono itself is xamarin.android. Here you are using mono android version v6.0 which you have targeted for your application & Runtime Version: 4.0.3 is your version of .NET runtime assembly.
Mono- The Mono framework is an open source implementation of Microsoft’s .NET Framework based on the open standards for the C# language and the Common Language Runtime.
The Mono project has been in active development for over a decade and is used - behind the scenes - in many products. Developer used to use it with Visual Studio 2010.
For more information visit this & this
Hope it help you.

Install Visual Studio Emulator for Android with VS 2015 Professional

I have installed VS 2015 Professional installed in my system and want to install VS Emulator for Android as I need it for Xamarin Android development but the setup doesn't seem to have an option for it(below screenshots). Can someone suggest how I can go about with this?
The Visual Studio Emulator for Android is installed with Visual Studio 2015 when you select Visual C++ for Cross Platform Development features.
If you update your VS 2015 to Update 3, you can also see the option Microsoft Visual Studio Emulator for Android:
The emulator can be launched from within Visual Studio 2015 from
Apache Cordova projects
C++ Native Activity (Android) projects
Xamarin Android projects
For Android development, you also need to install the Android SDK. And it is also suggested to create your own emulator with google service, for the emulator installed with VS, Hyper-V should be enabled, and for self-created emulator with Google service, Hyper-V should be disabled. Please refer to Windows Installation and Visual Studio Android Emulator to configure your environment for Xamarin Android development.

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