Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK missing with Android Studio 3

I've just downloaded Android Studio 3 for Windows from the official website, but when it starts, it displays an error message about a missing Android SDK:

Android SDK missing. You can obtain it from d.android.com/sdk

When I click that link, it just redirects to the same official website. There isn't a separate link there for SDK download.

Where could I get it from? Shouldn't the Android SDK be installed during Android Studio 3 setup?

like image 464
Attila Tanyi Avatar asked Oct 26 '17 19:10

Attila Tanyi


People also ask

Is Android SDK installed with Android Studio?

Within Android Studio, you can install the Android 12 SDK as follows: Click Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31.

How do I know if Android SDK is installed on Android Studio?

All of the packages are downloaded into your Android SDK directory, which you can locate as follows: In Android Studio, click File > Project Structure. Select SDK Location in the left pane. The path is shown under Android SDK location.

Do I need to install all SDK in Android Studio?

No, You don't need to install everything. Install the "SDK Platform" for the Android versions you've set as minimum, target, and in-between the minimum & target. The Android SDK Extras are usually not required; but it is useful to be aware of them since they may be required depending on your use case.


2 Answers

Apparently, the problem was that Android Studio 3.0 had already been installed and uninstalled before this. The SDK got removed, but Android Studio's config didn't.

Removing the config from a previous install (C:\Users\<user>\.AndroidStudio3.0 folder) did the trick. When Android Studio started up, it opened a dialog about which parts of the SDK to download, and then proceeded as expected.

like image 158
Attila Tanyi Avatar answered Oct 10 '22 11:10

Attila Tanyi


This happened with me on Windows 10 with Android Studio 3.1. The SDK was missing & I couldn't download or install it with the IDE. Android Studio wasn't downloading or installing the SDK properly, despite going through the steps. An error would appear at the end of the SDK configuration wizard telling me the SDK hadn't been installed b/c the sdk/tools directory didn't exist (no sh1t sherlock). I had not previously downloaded or installed Android Studio or the SDK.

It turns out that Android Studio 3.1 didn't have option checked for 'Enable embedded Maven repository' in the IDE Preferences.

After enabling the embedded Maven repo & restarting Android Studio, the SDK configuration wizard started up & successfully downloaded/installed the SDK.

like image 24
wooldridgetm Avatar answered Oct 10 '22 13:10

wooldridgetm