Importing ant build.xml in Eclipse
just simply import "existing projects into workspace" and import your project. then open 'ant' window from windows-->show/view --> ant
drag-drop your ant file from project explorer to the ant window.
click to expand, and select the target you want to run ->right click -> run as ANT
your setup should be ok with this.
Try the following method, got it work for me.
- Make sure you have ant installed
- Create new project> android project > choose from exisiting source (your project source)
- Download ant-contrib.jar, then unzip it and put the jar file to where you prefer.
- Add the ant-contrib jar file to Eclipse: Window>Preferences>Ant>Runtime>Global Entries>Add external jar
- Configure your build.properties. (copy and edit build.properties.example to build.properties)
- Now open build.xml in editor in Eclipse then hit Run
- Add the built jar files in your project properties, Project Properties>Java Build Path>Add JAR