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

荒凉一梦 提交于 2019-11-29 20:46:40

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.

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!