Error: Please provide a path to the Android SDK

android, android-studio-2.1, sdk

Solution

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.

Problem

After installing the Android studio and launching it I am getting this error. 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

Original source