How to build and package the android project with Ant.
I want to build and package a android project automatic with Ant,not the Eclipse.
Someone give me some examples or some Ant build files.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you are inside the root folder of your project, execute from a terminal/shell/console/command prompt:
This will generate the necessary files, including
build.xml. Modify it for your requirements, or leave it as it is for standard build behaviour.To create a debug build, execute:
Or swap out
debugforreleasefor a release build. Note that you will need to provide details to the release key in order to complete the signing process (keystore location, keystore password, key alias and key password). If you don’t, you will end up with an unsigned apk that you’ll have to manually sign using the appropriate key.I prefer to do a clean with most builds as well, so the command I issue with every release build looks like:
References: