Compile error while trying to compile android app with ant

后端 未结 2 1440
小蘑菇
小蘑菇 2021-01-14 00:46

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\" attr         


        
相关标签:
2条回答
  • 2021-01-14 01:17

    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 <project_name> --target <target_ID> --path <path_to_your_project>

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

    0 讨论(0)
  • 2021-01-14 01:38

    Just had the same issue and resolved the problem by using the right ant build.xml, probably the one Google really maintains. It's located at android-sdk\tools\ant\main_rules.xml and resolves this issue.

    0 讨论(0)
提交回复
热议问题