是“过渡”在Android无效的资源目录名称? [英] Is 'transition' an invalid resource directory name on Android?

查看:143
本文介绍了是“过渡”在Android无效的资源目录名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把从Android的示例项目的ApiDemos项目。不幸的是,该项目的抱怨无效的资源目录名称转换/ ApiDemos / RES 1号线的Andr​​oid AAPT问题

I make the ApiDemos project from Android Sample Project. Unfortunately, the project complains invalid resource directory name transition /ApiDemos/res line 1 Android AAPT Problem.

我的Eclipse版本为:朱诺服务版本2和JDK 7的ADT插件是V22.6.0。有什么不对呢?

My Eclipse is Version: Juno Service Release 2 and JDK 7. The ADT plugin is V22.6.0. What's wrong with it?

推荐答案

是的, 转换 资源是有效的,API的19。

Yes, transition resources are valid as of API 19.

要摆脱的错误,让您的构建SDK API级别19或更高。

To get rid of the error, make your build SDK API level 19 or higher.

要做到这一点,在Eclipse / ADT,无论是

To do that, in Eclipse/ADT, either

  • 打开项目属性,进入Android和选择项目建设目标为19 API,或

  • open Project Properties, go to Android and select Project Build Target as API 19, or

修改 project.properties 在项目的根和编辑目标来如的android-19

edit project.properties at project root and edit target to e.g. android-19

当然,你必须有SDK管理器安装SDK 19,并有向上安装最新版本的工具。

Of course, you will have to have SDK 19 installed with SDK Manager and have up-to-date build tools installed.

这篇关于是“过渡”在Android无效的资源目录名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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