Android的错误:此模板需要至少14构建目标API版本,而当前版本是7 [英] Android Error: This template requires a build target API version of at least 14, and the current version is 7

查看:421
本文介绍了Android的错误:此模板需要至少14构建目标API版本,而当前版本是7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了SDK,我喜欢用API 7的工作,但是当我想创建一个新的活动主要我有这样的问题,我不能创建一个新的活动,谢谢。

I installed the SDK and I like work with API 7 but when I want to create a new Activity Main I have this problem and I can't create a new Activity, thanks.

该模板需要至少14构建目标API版本,而当前版本是7

This template requires a build target API version of at least 14, and the current version is 7

在日志中,我可以这样说的:

In the log, I can read this:

不针对Android系统的最新版本;兼容模式适用。考虑测试  并更新该版本。咨询android.os.Build.VERSION_ codeS的javadoc了解详细信息。

Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.

推荐答案

创建活动,或在设置新的Andr​​oid应用程序项目,并能解决这个问题,这样,当我最近遇到了同样的问题。 我检查了这是在SDK /系统映像系统映像文件夹,构建工具文件夹-SDK /集结工具,发现这些文件夹没有的API是,我使用的最低要求SDK,目标SDK,进行编译。在每个这些需要提供了API没有。或Android版本。 所以检查的API所使用的(最低要求的SDK,目标SDK,进行编译)安装并检查系统的图像和构建工具文件夹中应该有这些API的

I recently faced the same problem when creating the activity or while setting the new android application project and able to solve this problem in this manner. I checked the system image folder which is in sdk/system-images,build tools folder-sdk/build-tools and found that these folder does not have the API's that i am using at Minimum required sdk,target sdk,compile with. In each of these you need to provide the API no. or Android version. So check that the API's that you are using for(Minimum required sdk,target sdk,compile with) are installed and also check the system-images and build-tools folder should have these API's

如果你这样做你的问题必须得到解决。

if you have done this your problem must be solved.

这篇关于Android的错误:此模板需要至少14构建目标API版本,而当前版本是7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆