-1

When I run Android Studio, it says

Please provide the path to the Android SDK: Android SDK path not specified

I tried the to try the solutions that were already posted, but I didn't understand them.

Also, I already have java installed, but I want to word with kotlin.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
T.Aloufi
  • 39
  • 1
  • 11

6 Answers6

4

Cancel the dialogue box asking for the Android SDK path and do the following:

Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:

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

Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.

It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.

You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.

The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.

Michael Fever
  • 845
  • 2
  • 8
  • 26
  • Thx for this comment got it working on Linux Mint 19. installed Android Studio via snap but couldn't get it working prior to this, thx again! – Krullmizter Mar 17 '20 at 08:09
  • Same on Ubuntu 20.04. All of the SDK Platforms were unchecked. I could not install any of them by checking them as I'd get a message that the SDK is corrupt. Instead I had to click `Edit` next to `Android SDK Location` and then it brought up a Wizard that installed the Android 10 SDK. – David Baucum Jun 03 '20 at 19:59
1

This is an issue with the Android Studio Plugin for Kotlin. When you use the latest version of Kotlin, you also have to make sure to update the plugin:

Tools > Kotlin > Configure Kotlin Plugin Updates
tynn
  • 38,113
  • 8
  • 108
  • 143
0

If the answers mentioned above and at several other threads in Stack overflow did not solve your issue of Android Studio then probably you and I have the same issue. I was stuck here since last 20 days and was struggling over it. Finally able to resolve it. Go back to the Android Studio download page. Bottom of the page contains download link to "sdk-tools-windows-4333796.zip". Just download the same and extract to a suitable location. Now mention the path to this folder in Android Studio. It will then install the suitable tools for Android Studio to work.

eurydice
  • 91
  • 2
  • The problem is that the Android Studio download page says, `These tools are included in Android Studio.` above the links to download the sdk tools. This shouldn't be necessary if that's true, no? – JaredH Nov 09 '18 at 17:29
  • Same issue here with Android Studio 3.3 for Windows 64-bit. Clean install and it asks for the SDK path. It provides a link to download the SDK which takes you to the page where you downloaded the 3.3 Studio IDE which claims to have the SDK bundled with it. Like come on Google. This has been an issue for 2 yrs now. How hard is it to get this right? – Michael Fever Feb 01 '19 at 20:27
-1

You can find the path going into Android Studio -> Configure -> SDK Manager -> On the top left it should say SDK Path.

Usually it is

C:\Users\<username>\AppData\Local\Android\sdk
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
maxrt
  • 19
  • 4
-1

Go to SDK Manager under Android SDK location provide the path which you gave during installation. If you had installed by default it should be in your

C>Users>USERNAME>AppData>Local>Android>SDK.

NOTE: AppData is hidden by default. So enable hidden items from View.

sanjeev
  • 1,664
  • 19
  • 35
-1

Took me a while to figure this out as the documentation is not clear on this at all. Cancel the dialogue box asking for the Android SDK path and do the following:

Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:

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

Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.

It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.

You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.

The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.

Michael Fever
  • 845
  • 2
  • 8
  • 26