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?
This question is related to
android
android-studio
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.
Here's a better approach where you don't have to delete/move anything for Android Studio 3.+.
File > Close Project
.Android Studio setup wizard will appear and perform the needed installation.
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.
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.
I was able to trigger an SDK download like this:
Source: Stackoverflow.com