Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later
AndroidAndroid StudioAndroid Problem Overview
Possible duplicate, I just download a Android Studio Zip file like Eclipse, as I opened getting this error.
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.+.
- Open Android Studio and click cancel/ignore for error prompts on missing SDK for each project.
- Close all your open projects. You can do this by
File > Close Project
. - After you do step 1 for all projects, the Welcome screen appears.
- 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
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:
- Close Android Studio
- Open android studio, but be ready
- Once you see "loading project", click cancel. (this will only appear for seconds on a fast machine)
- 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
- Create SDK folder at
\Android\Sdk - 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.