Visual Studio android sdk newer version is requied - android

In Visual Studio 2015 with Xamarin I installed android SDK and updated it. Android SDK manager says, that I have tools version 25.2.3:
.
But Visual Studio still shows up a message that I must update it:
.
Thanks for help.

I've came across the same problem yesterday, to solve this issue, you must download the Android 6.0(API 23). After that the designer should work just fine.

Related

Android SDK broken after Visual Studio 2019 update

I have been creating a Xamarin forms application using Visual studio 2019 for the past two months now however after completing the latest update for Visual Studio 2019, I am now receiving the following error when trying to build the application.
Error Xamarin.Android for Visual Studio requires Android SDK. Please click here to configure.
I thought that possibly the update had uninstalled Android SDK however below you can see that Android SDk is in fact installed.
As well as this, emulator 28.0.25 is also installed. Has anyone else had any issues with the Android SDK after the latest Visual Studio update?
I have read here that uninstalling the SDK should fix this issue however what do I uninstall? Would this be the Android SDK Tools + Android SDK Platform-tools + Android SDK Build-Tools?
To fix this issue I uninstalled Android SDK Tools, Android SDK Platform-Tools and Android SDK Build-Tools and re-installed them. I then got the same error however looking into the logs located in C:\Users\<USER>\AppData\Local\Xamarin\Logs\XamarinDeviceManager
I found that there was a big error log stating how Component Android SDK Platforms were not found on the system.
I closed Visual Studio, cleaned the solution and built it and it seems to have fixed the bug.

which android studio version have Android 5.1 (API level 22)?

I have downloaded some projects of android apk to learn from it ..
i try to open it using the latest version of android studio (2.2.3) , but it's take too long time and then stop ,I looked for a solution to this problem and found that these applications were built on previous versions of the sdk So to solve this problem, I should use an earlier version of Android Studio, so I want to know what is the Android studio version which have Android 5.1 (API level 22).
You can have a single installation of Android Studio and all the SDKs you want to use (partially or fully installed)
You have to download the sdk via sdk manager download the latest sdk

Android layout designer in VS dont work

Using Xamarin I can't solve the error when open even the default layout.
"
Something weng wrong
The installed Android SDK it to old. Version 25.1.3 or newer is
required. Please update to the latest version.
"
As seen in the image below I already installed the latest tools.
Using Java 1.8. Did I miss something?
Thank you very much.
I had a similar problem. Here a solution that worked for me:
1) delete the one package appearing in the screenshot of the Android SDK Manager in the url below. Nota bene: At this stage VS 2015 greyed out the Android SDK manager buttons, even after a restart.
2) download installer_r24.4.1-windows.exe for windows https://developer.android.com/studio/index.html
3) launch the Android SDK Manager outside of VS and install the proposed 19 packages. This time I could go through the installation.
4) Launch VS 2015 and create Xamarin Android project. Launching Main.axml would launch the designer properly on an android project.
More details here
How to resolve : unexpected error occured Initializing Android Designer" in VS 2015 with Xamarin

Android layout doesn't load in visual studio 2015

I'm using Xamarin 4.0.1.145, Visual Studio 2015, Windows 10 and Android SDK (24.3.3).
I want design and drag tools from tools box on main.axml but designer is disabled and I don't know why designer of Android or main.axml doesn't load?
my problem was solved.i uninstall xamarin and jdk completly then install xamarin 4.0.1.145 and jdk 7.
may be problem from elsewhere but the problem was solved by this way.
I also faced the same problem. And it got resolved after updating the Android SDK.
Tools --> Android --> Android SDK Manager

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