Android SDK missing with Android Studio 3

62,216

Solution 1

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.

Solution 2

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.

Solution 3

It's simple:

  • Select SDK Manager from the Tools menu in Android Studio.
    It will open a window called "Settings for New Projects".
    enter image description here

  • Click on Android SDK then select the Android SDK you want to download.
    enter image description here

This will definitely work.

Solution 4

try to reinstall it and download(automatically downloaded) the required file after restart, but follow the steps

1 go to your main drive(consider 'c') then c/user//androidstudioproject and copy it to some other location(save your old projects to safe location)

2 uninstall android studio from control panel

3 delete following file

    a c/user/<your system name>/androidstudioproject

    b c/user/<your system name>/.android

  c 'c/user/<your system name>/AppData/Local/Android (keep hidden files on)'

4 now install your androidstudio from its setup

these will automatically download the required files after installation (always connect to internet while installing)

Solution 5

I uninstalled Android Studio from Control Pannel. Save in a safe place the folder and subfolders below C:\USERS\MYNAME\ANDROIDSTUDIOPROJECTS

After I deleted c:\users\MYNAME\.ANDROIDSTUDIO3.1 AND c:\users\MYNAME\.ANDROID

After all I installed android studio. Take a long time but it resolved the problem.

Share:
62,216
Attila Tanyi
Author by

Attila Tanyi

Born in 1988, programming since 1997. Used languages and technologies: Logo, QBASIC, Pascal, Delphi, Assembly, C, Java, Android, Prolog, Matlab, Java ME, Perl, Python (pandas, numpy, plotly, boto3), C++, Qt, QML, Javascript, Wordpress, Windows, Unix, Amazon Web Services (Lambda, Kinesis, EC2, S3, DynamoDB), Perforce, Git, Github. I've always been working on a game, especially 2D platformers. Chances are that I'm working on one right now. I hold an MSc in software engineering. I've worked at several places. At university, I worked as a demonstrator teaching logic and artificial intelligence. I worked at an American cultural center as a volunteer, at a multinational company on an e-trading system, on my own making games and at a startup doing a little bit of everything, Matlab and Python scientific programming, machine learning, producing quality plots and full-stack multiplatform app-development, utilizing different brands of smartwatches and biosensors. I like playing music, especially the guitar and the bass.

Updated on January 11, 2022

Comments

  • Attila Tanyi
    Attila Tanyi over 2 years

    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?