Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Please provide a path to the Android SDK

After installing the Android studio and launching it I am getting this error. enter image description here

I cannot specify the path to the SDK. I have tried giving the path as :C:\Development\Android\android-sdk-windows\platform-tools\" but the path is invalid

like image 679
maninekkalapudi Avatar asked Sep 25 '16 08:09

maninekkalapudi


People also ask

How do I find Android SDK path?

Navigate to the File > Settings option you will get to see below dialog screen. Inside that screen. Click on Appearance and Behavior option > System Settings options and then click on the Android SDK option to get to see the below screen. Inside this screen, you will get to see your SDK path.

How do I fix Android SDK not found?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

How do I fix SDK location not found?

Close the current project and you'll see a pop-up with a dialog which will then proceed to Configure option. Configure -> Project Defaults -> Project Structure -> SDKs on left column -> Android SDK Home Path -> give the exact path as you did on local. properties and select Valid Target.

How can I change SDK path in Android Studio?

To set the Android SDK location, enter the full path of the Android SDK directory into the Android SDK Location box. You can navigate to the Android SDK location in File Explorer, copy the path from the address bar, and paste this path into the Android SDK Location box.


2 Answers

Try this:

  • close this box then

  • Tools -> Android -> SDK Manager

1 image

2 image

like image 74
Nasta Avatar answered Oct 10 '22 00:10

Nasta


I encountered this problem when installing Android Studio 3.0.

There was in fact no folder named C:\Users\Your Name\AppData\Local\Android\Sdk after I installed Android Studio. I tried installing the Android command line tools at this location, but android studio did not accept this. (Turns out, the command line tools are not the SDK.)

Managed to fix it by doing a complete uninstall of Android Studio, deleting the C:\Users\Your Name\AppData\Local\Android folder, deleting any 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, it gave me a dialog to download the SDK.

I can think of 2 possible explanations why this worked for me:

  • Originally, Android Studio was opening a project straight away, which didn't trigger the "download your sdk" dialog. (This no longer occurred since I deleted my Android Studio settings.)
  • There was some kind of setting that made Android Studio think I already had the SDK downloaded.
like image 17
DieterDP Avatar answered Oct 09 '22 23:10

DieterDP