编译错误试图编译蚂蚁Android应用程序 [英] Compile error while trying to compile android app with ant

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

问题描述

我试图编译蚂蚁我的Andr​​oid应用程序,我不断收到这样的信息:

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.

谢谢,杰森

推荐答案

请,提供堆栈跟踪完整的蚂蚁输出。你可能会使用不匹配的SDK /目标平台的版本。这可能会导致使用不支持的构建系统的特点,从您的build.xml文件。升级你的SDK,并与机器人工具更新生成配置:

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的更新项目--name< PROJECT_NAME> --target< target_ID> --path< path_to_your_project>

android update project --name <project_name> --target <target_ID> --path <path_to_your_project>

请参阅 http://developer.android.com/guide/developing/other -ide.html 机器人命令的详细信息

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

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

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