I've recently installed Visual Studio Community 2015 and I've been following an MSDN tutorial "Build cross-platform apps with Xamarin". When its time to design the look of the app and I select the Main.axml file in the Resources\layout folder, the Android designer fails with:
The installed Android SDK is too old. Version 24.3.4 or newer is required. Please update to the latest version.
I've done a lot of searching and found that one of the newer versions of Android SDK caused the Xamarin Android designer to fail. I did find a version 24.4.1 that suggests this designer problem is fixed.
How do I update this part of Visual Studio (i.e. Xamarin.Android)? Here is a snippet of my install on Windows 7:
Tools --> Options --> Xamarin
Under "iOS Settings" and "Android Settings" there is a link for "Check Now" next to the Updates settings
You might want to update to Beta release if you need the latest components -
Goto VS 2015 -> Tools -> Option -> Xamarin -> Others -> Check Now
They moved the "Check Now" into the harder-to-find Tools/Options/Xamarin/Other. We must always be on guard when dealing with the
Other
In newer Version of Visual studio this option is available in Other node
Goto VS 2015 -> Tools -> Options -> Xamarin -> Other -> Check Now
Here you can choose between Alpha, Beta or Stable versions of xamarin for Visual Studio.
Apparently, my problem was solved after installing SDK Platform for Android 6.0 or API 23. API 24 or higher i.e Android 7.0 (Nougat) didnt run. If still not solved then install SDK Platform for even lower APIs like 22,21 ...
Hope it helps.
Related
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.
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.
In a computer, I have installed Android 11.0 SDK for a Visual Studio 2019 Community installation and my Xamarin Android app is compiled correctly using this SDK. The SDK was installed automatically:
Then I installed Visual Studio 2019 Community in another computer to compile my app there. But it seems the Android 11.0 SDK is no longer available:
It is not installed automatically and I cannot find anywhere to install it manually. What's wrong and how can I install Android 11.0 SDK on Visual Studio?
After long searching and none of the solutions were working for me, i've found that the SDK can also be installed with the VS Installer.
The API level 30 (Android 11) was nowhere to be found to install, nor VS SDK Manager nor Android Studio SDK Manager (the AS SDK Manager didn't even work, could not load any SDK's)
(See screenshots)
Go to VS Installer -> Modify VS version
-> Go to tab 'Individual Components' -> Search for SDK API level 30 -> Select and install
After the first login you'll probably need to accept SDK licenses again as I had to.
Hope this helps anyone who, like me, did not find any other solution working
PS: I did update VS to its latest version before doing this, not sure if this is mandatory or not since I was on 16.10 before but if this doesn't work, try updating VS itself first.
As of now Android 11 is not officially supported in Visual Studio.
So you have two options:
Select to use unofficial repositories in that dialog
Wait for the version 16.9 where it is supposed to be supported.
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
In a Visual Studio 2015, Xamarin, Android SDK, jdk 1.7, and emulator are installed and Xamarin has all green checked items in tools>options>Xamarin. But When I try to create Blank App (Android) VS shows an error:
Object reference not set to an instance of an object
Then new project fail to create and solution explorer will be empty.
How could I solve it?
I solved it with updated Android SDK setup (API Level 19 and 21) [3rd party] to Android SDK setup (API Level 22) [3rd party] in Visual Studio setup.
I had the same problem and when I installed Android 4.4.2(API 19) from
Android SDK Manager the issue got resolved. You can open Android SDK Manager in
VS2015 with Update 2 by navigating to Tools-> Android->Android SDK Manager
I figured out this...
Depending on the emulators you want to use with the new project, subject to what is installed using Android AVD, you will need to download the necessary API Level.
Example.
I looked up my emulators.
Then I simply opened Android SDK Manager and downloaded the corresponding API Level 19
And everything worked out well
I also encounter this problem on Visual Studio 2015 Update 2 with Xamarin.VisualStudio_4.0.3.214, but I solved it by installing level 19, 21, 22, 23 through Android SDK Manager.
I struggle with this same problem for a whole day but I got it resolved after several iterations.
Make sure Android Studio is not installed on your computer. If it is, uninstall it and run the VS2015 installer again until all Android SDK errors go away.
Make sure VS2015 is closed and install the most recent stable version of Xamarin for Visual Studio 2015. I found it here: https://store.xamarin.com/account/my/subscription/downloads. (Trying to install it through VS2015 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 (do not use 8 even though its the latest). 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 VS2015. 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. You are all welcome!!!