As in the title, I cannot use Xamarin in Visual Studio 2015 on Windows 10, because I have Tools > Android menu disabled. Has anyone got the same issue? I was trying to figure out what the problem is and find the solution for hours, but nothing like reinstalling Visual Studio or installing Android Studio and later launching the Visual Studio helps.
the solution to solve this problem :
to launch uninstaller.exe in C:\Program Files (x86)\Android\android-sdk
then to do a manual installation
https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/
Now it is OK, the sub menus under Tools / Android are active.
#moderator:
yesterday I put my IDE logs as Jon Douglas asked because I had the same issue and now this post is not here. Why ?
The better solution is :
1) Uninstall Android SDK Manager C:\Program Files (x86)\Android\android-sdk
(Wait till the Uninstall completes...it will take some time complete...so wait)
2) Open Visual Studio 2015 Community Installer, scroll down and click the CheckBox for Android SDK Manager, Visual Studio then automatically installs the Android SDK Manager.
Visual Studio 2015
Related
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.
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.
AVD Manager in my android studio was working fine, until an unexpected shutdown caused AVD Manager to act weird. Now I can't run any AVD's.
When I click any system-image it says unknown error under recommendation. When I click finish it says:
An error occurred while creating the AVD. See Idea.log for more details.
Here are the screenshots:
I was able to solve this using this solution.
[Delete] *.ini files from a directory home//.android/avd It's for
Ubuntu. In Windows it's also in the user's folder (.android/avd).
I deep dive into this issue and found the following solution.
There was a problem to run mksdcard sdk tool. Some SDK tools such as mksdcard.exe require Microsoft Visual C++ runtime. So go to your System properties and check your System type:
Then based on your system type,(for me it was x64) download/update the latest Microsoft Visual C++ Redistributable for Visual Studio 2019 from the link https://visualstudio.microsoft.com/downloads/
After installing Microsoft Visual C++, the problem was fixed. Also the Unknown error problem was fixed and I was able to create the avd successfully.
The problem resolved by reinstalling android studio
First, go to control panel,
Remove, if exists Microsoft Visual C++ 2015 Redistributable package x86 or x64,
Then, go to this link, https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
download Visual Studio 2015,2017,2019,2022 latest package x86 and x64 version. Install two version then,
restart pc,
Error is gone...
I am very new in xamarin development. Recently I install xamarin with visual studio 2015 in windows 10. I have created a simple project in xamarin android. It build perfectly but when I try to run the project in emulator getting "There were deployment errors, continue?" popup message.
.
I have googled and do not get any proper solution. Please help me to solve the problem.
had the same problem on windows 64 bit
i'm using the latest android sdk build tools at this moment (v25.0.1)
just installed jdk 9 and a 32 bit version of jdk(version 7) due to this link
then changed the jdk path in tools>options>Xamarin>Android settings.
restart visual studio. clean and rebuild. that's it.
You may have wrongly selected "target Android version" to version your emulator is running on.
Make sure that these two are aligning.
VS -> (right click on project) -> properties - > Android Manifest (tab) -> Target Android version (drop down)
In my system, I'm using latest Android SDK build tools at this moment(v26.0.1) and Visual Studio 2017 Version 15.7.4.
In Regedit the Android SDK also same Visual Studio tools>options>Xamarin>Android settings. But the problem was same with me.
In my case, I changed the Package Name in Android Manifest then the problem has been solved.
I had this same problem, which I solved by editing the Android emulator on Android Device Manager giving it a processor of both 32 and 64 bits (x86_64).
After doing this, Android Device Manger downloaded and updated the Emulator configuration. After this I was able to run and debug my app with no problems on Android Emulator.
you should increase free space in drive C and empty temp folder
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.