Android SDK Manager not showing in Visual Studio - android

I'm trying to follow this guide to install Visual Studio with the Android SDK manager:
Link to guide: https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows
So I downloaded Visual Studio from here: https://visualstudio.microsoft.com/vs/
After installation, the menu Tools > Android > Android SDK Manager is not available.
What should be done to make the menu available? And be able to open the Android SDK Manager?

using Visual Studio 2019:
You will need to run the "Visual Studio Installer" again. Then click modify, and in the Workloads tab, select:
Mobile development with .NET.
Build cross-platform applications for iOS, Android or Windows using Xamarin
The Android SDK manager will be available after you've installed this workload.

You could try to run VS as an administrator, which resolves almost any issue of the kind you are experiencing right now.
Another free advice before you start: if you find any problem building(even when you start VS as admin), first try to delete your \bin and \obj folders and try again. That is the solution to 99% of the issues.

Related

Can't install vsix to Visual Studio 2019 - Android Device Manager has a lower version than required by Visual Studio

I have Visual Studio 2019 installed with Xamarin. I'm trying to get Shell to show up in the project templates. I'm following this post as a guide. But when I install the vsix file, it fails with the error message: Installation of Microsoft.VisualStudio.Android.DeviceManager failed. The extension has a lower version than required by Visual Studio. Please install the extension from Visual Studio Installer instead.
Where in the Visual Studio Installer is the Android Device Manager? I've installed all the Mobile Development tools and all updates....
That post is obsolete - it describes something you needed to do in a Preview version of VS 2019.
In VS Installer, select Workload "Mobile development with .NET".
I was unable to find any Microsoft doc that tells you to simply do that!
I don't recall whether you still need to also do this step:
Setting up the Android SDK for Xamarin.Android.
After installing the Workload mentioned above, restart VS. See if the menu item mentioned below is there. If so, try to make a sample app - maybe this "Android SDK" step is no longer needed - the Workload might set everything up.
Then Android Device Manager will be at menu Tools / Android / Android Device Manager.
Menu location documented here.

There is no option for changing the repository in Android SDK Manager

Error screenshot
I am currently coding in Visual Studio 2022 Community Preview. I googled my problem and there I found that changing the repository to Google would solve the problem, but in my android SDK manager, there is no option for changing the repository.
Any help would be greatly appreciated.
Visual Studio includes an Android SDK Manager that you use to download Android SDK tools, platforms, and other components that you need for developing Xamarin.Android apps.
See Tools -> Android -> Android SDK Manager.
Under Platforms you'll find various Android versions for the emulator and under Tools you can install various tools.
Also
See Tools -> Options -> Xamarin -> Android Settings
and make sure that the Auto Install Android SDKs is checked.
There is a folder path called Android SDK Location, if it's empty you can browse for it in your computer yourself to find it.

Xamarin - The project is missing Android SDKs required for building

I downloaded a fresh copy of Visual Studio 2019 Community Edition. For installation, I selected only the Xamarin workload for mobile development. I created a new Xamarin.Forms project and it immediately gives the following error:
When I double click the message, I am prompted to Accept the Android SDK License Agreement. I click accept, and nothing changes, I just keep repeating those steps.
Navigating to the Android SDK Manager shows an empty list with an error:
All the solutions I have found online have not worked for me:
Enable "Auto-Install Android SDKs" in Xamarin options
Run Visual Studio as Administrator
Create custom AndroidSdkManager.exe.config file
Uninstall and re-install Visual Studio
Verified JAVA_HOME variable is set correctly
The only thing that resolved the error (before I uninstalled) was changing the Android SDK Manager repository from Microsoft to Google:
This doesn't seem like a proper solution given the warning message shown so I am wondering what else I can do.
If this issue has not been resolved yet, try to:
Open Visual Studio as an admin because the software might be failing to read the files in your system.
Go to Visual Studio > Tools > Android > Android SDK Manager and go to the tools tab and install Android SDK Command Line tools.
Then now, you can double click on the error and the issue should be resolved.
I'm running VS2022 17.4.2 and the same issue appeared on a new 7.0 Maui Blazor App. Closing VS and Running as Administrator, reopening the project, then clicking on the error gave me a License Acceptance. After accepting, all is well.
I was running on Windows 7. The issue was resolved after upgrading to Windows 10 and the Android SDKs installed correctly.

Android SDK Manager is not displaying in Eclipse list

I have installed
- Android SDK Manager,
- Android Virtual Device Manager
but in my eclipse -> Windows[ I am not getting SDK Manager options ] is there any settings to enable it.
please tell me.
First, please notice that:
Important: Support for the Android Developer Tools (ADT) in Eclipse
has ended, per our announcement. You should migrate your app
development projects to Android Studio as soon as possible. For more
information on transitioning to Android Studio, see Migrating from
Eclipse ADT.
Read whole article here: http://developer.android.com/tools/help/adt.html
or find more information here: http://android-developers.blogspot.com/2015/06/an-update-on-eclipse-android-developer.html
If you still want to develop in Eclipse, here you would find how to integrate it with Eclipse: Install ADT plugin in Eclipse
Hope it help

Xamarin - disconnected from layout renderer

I just downloaded xamarin studio. I get an error message "disconnected from layout renderer please close the file and try again" whenever i open a axml in the layout folder. I can view the source but can't go to the design tab to add controls. Closing the filed does not work.
I'm not sure how to find what version of xamarin.android i'm using but I just downloaded last night. When I go to the SDK manager it tells me my Android SDK Tools are version 23.0.4.
I found this old thread on the same topic. I tried renaming my tools folder and downgrading but that didnt' work either. It told me I need tools of at least version 22.
http://forums.xamarin.com/discussion/14344/disconnected-from-layout-renderer-error-after-updating-android-sdk-tools-to-version-22-6
I've tried uninstalling Xamarin Studio and reinstalling and that didn't help. I do have Visual Studio 2013 with update 3 installed too. But then I also tried installing Xamarin Studio on another laptop with Visual Studio 2012 and got the exact same problem.
Note: this error displays in both Visual Studio and Xamarin Studio.
I really hope I can get this resolved as i'm evaluating Xamarin for 2 companies. Any help is greatly appreciated.
-Randy
The solution is here: http://forums.xamarin.com/discussion/comment/51784/#Comment_51784
Only this time, you need to downgrade from 23.0.4 to 23.0.2.
Just found this out the hard way.
Cheers
Thank you Balint! You made my weekend!!! Here is a direct link to the tools version that works.
http://dl-ssl.google.com/android/repository/tools_r23.2-windows.zip
I recently had this same issue when trying to open the main.xaml in Xamarin Studio for Mac OS X. Here are the steps I took to resolve the problem:
Open the Android SDK Manager in Xamarin Studio and delete the Android SDK Tools.
Re-download the SDK Tools from [https://developer.android.com/sdk/index.html?hl=i]. Revision 23.0.2
Make sure the downloaded SDK is unzipped in the path /Users/username/Library/Developer/Xamarin/android-sdk-macosx
Then I launched the SDK Manager from the Terminal using cd library/developer/xamarin/android-sdk-macosx/tools ./android
When the SDK launches, make sure the Android SDK Tools is not selected, else it will update it to 23.0.5 which appears to currently be broken.
After the SDK Manager updates and installs all the packages, re-open Xamarin Studio and go to Preferences -> SDK Locations -> Android and chose the path for the Android SDK.
After following these steps I was able to successfully open the main.xaml files for Android on OS X.

Categories

Resources