Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later

AndroidAndroid Studio

Android Problem Overview


Possible duplicate, I just download a Android Studio Zip file like Eclipse, as I opened getting this error.

enter image description here

But problem is how to update it?

Android Solutions


Solution 1 - Android

same problem happened to me, From this

I have faced the same issue, to solve it:

1- delete (or move) the projects folder (AndroidStudioProjects).

2- Run the Android-Studio (a WELCOME screen will started).

3- From Welcome Screen choose, "Configure -> Project Defaults -> Project Structure)

4- Under Platform Settings choose SDKs.

5- Select Android SDK -> right_click delete.

6- Right_click -> New Sdk -> Android SDK -> choose your SDK dir -> then OK.

7- Choose the Build target -> apply -> OK. enjoy

Solution 2 - Android

I had same issue in Android Studio 3. (the project was open) so I closed the current project and the IDE automatically prompted to download the latest components. once its done everything was working correctly.

Solution 3 - Android

Here's a better approach where you don't have to delete/move anything for Android Studio 3.+.

  1. Open Android Studio and click cancel/ignore for error prompts on missing SDK for each project.
  2. Close all your open projects. You can do this by File > Close Project.
  3. After you do step 1 for all projects, the Welcome screen appears.
  4. The welcome screen will detect you are missing the SDK and give you options to fix the problem, i.e., install the SDKs for you.

Solution 4 - Android

Click on Tools > SDK Manager or click SDK Manager after If you are unable to see the location of your Android SDK Location, click on edit and create a folder where you want to keep it and then click Next and Finish enter image description here

Solution 5 - Android

Source: https://stackoverflow.com/a/46351772/13093413

(Top right corner) File > Close Project > After you close the project you will get a screen which says that you don't have an sdk and will ask you if you want to install it.

Solution 6 - Android

I was able to trigger an SDK download like this:

  1. Close Android Studio
  2. Open android studio, but be ready
  3. Once you see "loading project", click cancel. (this will only appear for seconds on a fast machine)
  4. The SDK download window appeared!

Solution 7 - Android

If Android Studio directly opening your project instead of setup window, then just close the windows of all projects. Now you will able to see the startup window. If SDK is missing then it will provide option to download SDK and other required tools.

It works for me.

Solution 8 - Android

  1. Create SDK folder at \Android\Sdk
  2. Close any project which is already open in Android studio

Android Studio setup wizard will appear and perform the needed installation.

Solution 9 - Android

1.Click on Configure

2.Then Choose Project Defaults

3.Click on Project Structure

4.Set android sdk path

You will find here "C:\User\YourPcname\AppData\Local\SDK"

Note: Sometime AppData may hidden if it will not show then enable show hidden content.

5.Apply Changes

6.Then Select Sdk From Configure option

7.Then Android sdk manager page is open

8.In bottom you will see Install packages option

9.Install them and enjoy.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser3309991View Question on Stackoverflow
Solution 1 - AndroidRajendra aroraView Answer on Stackoverflow
Solution 2 - AndroidDesolatorView Answer on Stackoverflow
Solution 3 - AndroidcodingjeremyView Answer on Stackoverflow
Solution 4 - AndroidBhaskara AraniView Answer on Stackoverflow
Solution 5 - AndroidTrake VitalView Answer on Stackoverflow
Solution 6 - AndroidEric NelsonView Answer on Stackoverflow
Solution 7 - AndroidAbeer IqbalView Answer on Stackoverflow
Solution 8 - AndroidAkashView Answer on Stackoverflow
Solution 9 - AndroidVishalView Answer on Stackoverflow