androidsdkandroid-studio-2.1

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


Solution

  • I encountered this problem when installing Android Studio 3.0.

    There was in fact no folder named %USERPROFILE%\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 %USERPROFILE%\AppData\Local\Android folder, deleting any Android Studio settings folders (in my case %USERPROFILE%\.AndroidStudio2.3 and %USERPROFILE%\.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: