Keep on getting SDK error message

允我心安 提交于 2019-11-28 07:35:28

问题


I have been working on Android Studio for a while now. But today when I tried to create a new project, I got the following error message:

Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs

I upgraded my SDK tools, android studio. I have also configured my sdk location in studio as per the message, but to no avail.


回答1:


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




回答2:


SDK files are not included in the Android Studio distribution package android-studio-ide-135.1538390-windows.zip. You have to manually add them, for instance from the adt-bundle-windows-x86-20140702.zip file.




回答3:


In the case: if your project sdk is already set and was running properly.

and after that it gives error like: "please select your sdk" then just copy same android sdk folder to different folder and set that new android sdk path to your project and rebuild your project,it will fix the issue, then again change your project android sdk path to old path and rebuild project.




回答4:


I had the same issue the i came to understand that the android studio was not able to create folder so i ran the studio as sudo

cd /opt/android-studio/bin then run sudo bash studio.sh




回答5:


Had same issue with Studio 2.0 on Ubuntu 14.04. What actually helped me: close the Studio; rename SDK folder; open the Studio; enter a new path in prompt dialog.



来源:https://stackoverflow.com/questions/16805813/keep-on-getting-sdk-error-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!