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:
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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With