A valid android SDK could not be found…an existing SDK with platform-tools and at least one platform

A valid android SDK could not be found...an existing SDK with platform-tools and at least one platform needs to be registered with the IDE...

i have done a lot of thing just like install 2 to 3 times visual studio 2015,download 2 to 3 times Xamarin but still getting the same error..HOW TO SOLVE?? enter image description here

I AM USING 64 BIT WINDOWS 10 OS.. now this error comes..how to solve?? enter image description here

6 Answers

up vote 7 down vote accepted

Go to Tools > Android > Android SDK Manager...

Inside of Android SDK Manager you need to update the following tools

  • Android SDK Tools
  • Android SDK Platform-tools

You also might want to install API 25, API 24 and API 23 SDK platforms. Also if you plan to use the Google Emulator install some relevant x86/x86_64 System images.

When you have done this, close the Android SDK Manager and restart Visual Studio and try building again.

EDIT: In the comments you say that you are unable to open Android SDK manager. This sounds a lot like the installation of it went wrong.

Go to: https://developer.android.com/studio/index.html at the bottom of the page download the command line tools and install them. Make sure to take note of the path you specify for the installation. You need to enter the same path in Visual Studio under: Tools > Options > Xamarin > Android Settings > Android SDK Location

While you are at it. You might also want to install latest Java JDK 8 and change the path in Visual Studio same place as Android SDK Location to point at that newer JDK.

  • I am unable to open android sdk manager..it is not opening i dont know why it is happening... –  Mr. Manoj Kumar  Oct 20 '16 at 8:17
  • the android sdk manager is invisible..i.e. we can't click on sdk manager option –  Mr. Manoj Kumar Oct 20 '16 at 8:18
  • ok...that means i need to download and install the android studio..just give me some time.. –  Mr. Manoj Kumar  Oct 20 '16 at 8:27
  • No just the command line tools. You don't need Android Studio itself. It is at the bottom of the page I linked to. –  Cheesebaron  Oct 20 '16 at 8:29
  • yes i got it and download 145 mb .exe file..now what should i do?? –  Mr. Manoj Kumar  Oct 20 '16 at 8:34

I resolved the problem by going to: C:\Program Files (x86)\Android\android-sdk\temp I found the following file in there: tools_r25.2.2-windows.zip (as of 13/10/2016) I opened the zip file, there is a 'tools' folder. I unzipped the tools folder to 'C:\Program Files (x86)\Android\android-sdk' and overwrite the existing tools folder. Restart Visual Studio and all the layout file can be displayed normally.

Good luck everyone!

  • Perfect , it saves my day. Done upvote –  Andi AR  Jan 10 '17 at 17:50

Download and Install Android SDK. https://developer.android.com/studio/index.html then set its location in VS: Tools->Options->Xamarin->Android SDK location

  • sir this is the android studio..is it need to download android studio?? –  Mr. Manoj Kumar  Oct 20 '16 at 8:01
  • look at the very bottom of the page. "installer_r24.4.1-windows.exe" or "android-sdk_r24.4.1-windows.zip" –  I.V.S.  Oct 20 '16 at 9:53
  • where??describe me details –  Mr. Manoj Kumar  Oct 20 '16 at 10:11
  • after download the second error comes what should i do???version 25.1.3. –  Mr. Manoj Kumar  Oct 20 '16 at 10:13
  • click "Open Android SDK" link or open Android SDK manager any other way(from "tools-android-android SDK manager" for example). Then update or install: Android SDK tools, Android SDK Platform-tools, Android some version –  I.V.S.  Oct 20 '16 at 10:48 

While the Xamarin is updating, that error can see.

Solved is found the tools zip file:

C:\Users\User Name\AppData\Local\Android\android-sdk\temp\tools_r25.2.4-windows (or your active last tools, doesnt matter. for ex. tools_r23.0.1)

-> Open that zip and unzip in "tools" folder.

-> Cut that folder and, paste parent folder (C:\Users\User Name\AppData\Local\Android\android-sdk)

enter image description herego to Tools-->Android--> Android SDK MANAGER

[Remember select only those which is ticked in the image ... when you click these other items under the clicked item would automatically be selected .. you need to unselect those]

I have resolved the issue. Firstly I tried to Updated the Android SDK from SDK Manager by running "SDK Manager.exe" from my PC. But at that time nothing was working, after that I restarted my PC and launched Visual Studio as an Administrator. Then created a new Android project and everything was working fine.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值