Error: specify path to Android SDK

After installing Android studio and launching it, I get this error. enter image description here

I can not specify the path to the SDK. I tried to specify the path as :C:\Development\Android\android-sdk-windows\platform-tools\" but the path is not valid

+15
source share
9 answers

Try this - C:\Users\Your Name\AppData\Local\Android\Sdk

Replace Your Name with the name of your PC.

+7
source

Try it:

  • then close this window

  • Tools β†’ Android β†’ SDK Manager

1 image

2 image

+23
source

I encountered this problem when installing Android Studio 3.0.

Actually there was no folder named C:\Users\Your Name\AppData\Local\Android\Sdk after installing Android Studio. I tried installing the Android command line tools in this place, but android studio did not agree with this. (Turns out command line tools are not SDKs.)

I managed to fix it by performing a complete uninstall of Android Studio, deleting the C:\Users\Your Name\AppData\Local\Android folder, deleting all the Android Studio settings folders (in my case C:\Users\Your Name\.AndroidStudio2.3 and C:\Users\Your Name\.AndroidStudio2.3 ). After reinstalling and opening Android Studio, he gave me a dialog to download the SDK.

I can provide two possible explanations of why this worked for me:

  • Initially, Android Studio immediately opened a project that did not cause the "download your sdk" dialog. (This did not happen anymore since I deleted the settings for Android Studio.)
  • There was some kind of tweak that made Android Studio think that I had already downloaded the SDK.
+11
source

I am also stuck with this ... I tried everything that is mentioned above, but could not get through.

Then I was going to uninstall and reinstall the IDE as above.

When I was about to uninstall the application, to my surprise, I found the Android SDK Tools in Control Panel -> Programs and Features, and that was what I was looking for!

Android SDK Tools in Control Panel β†’ Programs and Features

I did not know how to find the way of this, because even after searching on my computer, I did not understand it. So, I went ahead and clicked on delete. There I found the path to the Android SDK Tools "C: \ Program Files (x86) \ Android \ android-sdk \". I have not deleted anything.

I linked this path in the dialog box, the error has disappeared!

Anyone who encounters the same error should find the β€œAndroid SDK Tools” in the programs and functions in the control panel, and then proceed to remove it. There you will find the path to the tool folder. Copy and paste this path and you will pass.

0
source

It took me a while to figure this out, since the documentation is not entirely clear on this. Cancel the Android SDK path request dialog box and do the following:

Open the Android Studio IDE. Locate the down arrow icon, there should be a second last icon on the toolbar. Click this. You will see the path for the Android SDK Location:. Click on the edit link to the right of this. This will bring up the SDK components screen. If you can check the boxes there, check them out. Perhaps they have already been verified or may be disabled. You can leave the path as is, for me this is:

  C:\Users\<user name>\AppData\Local\Android\Sdk 

Depending on whether you had Android Studio before it could say that it detected a previous version and it would only download the necessary components. This is normal. Now click the NEXT button. A confirmation screen will appear with the installation type and SDK folder. If you want to change your SDK folder, this is your last chance, if not, press NEXT again.

The Terms and Conditions screen may appear, click the Accept button, and then NEXT. Go and download the base Android SDK. When done, click Finish.

After that, you will be taken to the "Platforms" screen, where you can choose which Android platforms you want to support. those. Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need and click "APPLY".

The bootloader will capture all these packages for you. Then go to the SDK Tools tab. Check the boxes for the tools you need and click "APPLY". He can again call up the "Terms and Conditions" screen, click the "Accept" and "NEXT" buttons. When done, just click Finish and you're done.

0
source

When installing Android Studio on my Mac, I accidentally canceled the dialog box in which the SDK was usually installed. To fix this, I removed Android Studio from /Applications and deleted the following folders:

 % cd $HOME % rm -rf Preferences/AndroidStudio3.4 % rm -rf Logs/AndroidStudio3.4 % rm -rf Caches/AndroidStudio3.4 % rm -rf Application\ Support/AndroidStudio3.4 

(Set the version number for your version.) Then I reinstalled Android Studio and let me go through the SDK installation process.

0
source

In case anyone experiences the same weird situation as me:

I installed Android Studio, saved the projects, but for some reason I had to reinstall Windows (and during that I deleted my "Android folder" to "... / local". When you do this, you will come across exactly the same pop-up window.

Do not worry, close it, and although he says it is necessary, it is not. You simply do not have access to previous projects. When you save a new one, everything will be OK.

0
source

The problem was solved by downloading the SDK again, in my case I deleted the SDK folder, which was in C:\Users\george\AppData\Local\Android\Sdk , because I deleted it, then I had to download the SDK

0
source

This problem usually occurs after updating or reinstalling Android Studio. Follow these steps- steps. * Close all open projects that open by default after you start Android Studio .. and open Android Studio again, it will direct you to re-download the SDK components from the network (so make sure you have a network connection at this point ) .. * If the above step does not work, restart your computer and open Android Studio again.

Hope this helps ..

-1
source

All Articles