不断收到 SDK 错误消息 [英] Keep on getting SDK error message
问题描述
我已经在 Android Studio 上工作了一段时间.但是今天当我尝试创建一个新项目时,收到以下错误消息:
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:
您的 Android SDK 已过期或缺少模板.请确保您使用的是 SDK 版本 22 或更高版本.您可以通过以下方式配置您的 SDK配置 |项目默认值 |项目结构 |SDK
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
我升级了我的 SDK 工具,android studio.我还根据消息在工作室中配置了我的 sdk 位置,但无济于事.
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- 删除(或移动)项目文件夹 (AndroidStudioProjects
).
2- 运行 Android-Studio(将启动欢迎屏幕).
3- 从欢迎屏幕中选择,Configure
-> Project Defaults
-> Project Structure
)
4- 在 Platform Settings
下选择 SDKs
.
5- 选择Android SDK
-> right_click delete
.
6- Right_click
-> New Sdk
-> Android SDK
-> 选择你的 SDK 目录
-> 然后 确定
.
7- 选择Build target
-> apply
-> OK
.享受
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
这篇关于不断收到 SDK 错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!