Ant has many advantages. Although google provides a Development Environment Based on Eclipse + ADT, Eclipse is a little heavyweight. If continuous building is required, Ant is the preferred tool. However, I have found a lot of materials on the Internet, and I have not tried many of them well. Most of them are outdated. The latest android sdk does not provide the corresponding development tools mentioned on the Internet. However, you have to do it yourself.
Copy the android_rules.xml file under the platforms/ardroid-7/templates folder in the SDK package to the project directory. Configure the property file to use it. Parameters to be set:
Aapt =$ {sdk. dir}/platforms/$ {target}/tools/aapt.exe <br/> android. jar =$ {sdk. dir}/platforms/$ {target}/android. jar <br/> dx =$ {sdk. dir}/platforms/$ {target}/tools/dx. bat <br/>
In this way, ant can be used to manage projects.