How to convert an Eclipse Android project to use Ant for build?

前端 未结 3 1656
暖寄归人
暖寄归人 2020-12-23 11:33

I have an Android project in Eclipse I would like to convert to be built with Ant instead.

How can I achieve this? I have tried exporting an Ant bui

相关标签:
3条回答
  • 2020-12-23 12:14

    You can create ant build file directly from eclipse it self.. From File Menu

    Here are the steps to create build.xml for any project in eclipse

    File -> Export -> General -> Ant Buildfiles and choose required project to create a build file.

    0 讨论(0)
  • 2020-12-23 12:21

    While there may be no "Run Configuration to Ant" feature you can still open the run configuration and view the settings.

    The Android Developers site has a section on using "Other IDEs"; here they cover a little on using Ant to compile if you're familiar with Ant already.

    0 讨论(0)
  • 2020-12-23 12:22

    Running android update project -p . on the command line, in the base folder of your project will create the necessary build.xml and supporting files for an Ant build.

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