Android custom build using Ant

后端 未结 3 1147
陌清茗
陌清茗 2021-01-02 06:43

These 4 files (build.xml, local.properties, projects.properties, proguard.cfg) are auto-generated when running:

android update project --name TestApp --t

3条回答
  •  星月不相逢
    2021-01-02 07:15

    Maybe you can check the answer to this question:

    Does the ADT plugin automatically create an ant build file?

    in the answer there is a paragraph saying...

    Alternatively, you can just copy the build.xml template directly from $ANDROID_HOME/tools/lib/build.template then just change the project name.

    Modify this file and run the commands to see if it works.

    Update

    Also check "Customizing the build" of this article: http://www.androidengineer.com/2010/06/using-ant-to-automate-building-android.html

提交回复
热议问题