尝试使用 ant 编译 android 应用程序时出现编译错误 [英] Compile error while trying to compile android app with ant

查看:32
本文介绍了尝试使用 ant 编译 android 应用程序时出现编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 ant 中编译我的 android 应用程序,但我不断收到此消息:

I am trying to compile my android app in ant and I keep getting this message:

BUILD FAILED
K:\build.xml:359: aaptexec doesn't support the "basename" attribute

为什么会这样?我正在使用 android sdk 4 中的模板.

why does this happen? I am using the template from android sdk 4.

谢谢,杰森

推荐答案

请提供完整的 ant 输出和堆栈跟踪.您可能使用了不匹配的 sdk/目标平台版本.这可能会导致使用 build.xml 中不受支持的构建系统功能.升级您的 sdk,并使用 android 工具更新构建配置:

Please, provide full ant output with stack trace. You're probably using mismatched sdk/target platform versions. This might cause use of unsupported build system features from your build.xml. Upgrade your sdk, and update build configuration with android tool:

android update project --name --target --path

参见 http://developer.android.com/guide/developing/other-ide.html 用于 android 命令详情

See http://developer.android.com/guide/developing/other-ide.html for android command details

这篇关于尝试使用 ant 编译 android 应用程序时出现编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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