编译错误试图编译蚂蚁Android应用程序应用程序、蚂蚁、错误、Android

2023-09-06 15:38:46 作者:弃我拥她必是人渣

我试图编译蚂蚁我的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