Android uses Ant to build. The tools/ant below the Android SDK Build.xml is the entire process of build.
The build parameter can be override in the Ant.properties file. You can also customize the build script yourself.
Using ant build is very simple
1) Install Ant and add it to the system path variable
2) Generate Build.xml for the project
Android Update project-p.
3) Generate Debug version
Ant Debug
4) If you want to generate release version need to provide KeyStore to sign
Create a new Ant.properties file in the project root and configure the KeyStore path inside
key.store=path/to/my/Keystorekey.alias=Alias_namekey.store.password=111111 Key.alias.password=111111
5) run ant release to generate an APK with signature information
Ant Release
Note that the library libraries referenced in the project are also required to use the ant build, Mr. Build.xml.
This is the entire build process in the official document, if you want to do continuous integration is basically the idea above
Official documents:
Http://developer.android.com/tools/building/index.html
Http://developer.android.com/tools/building/building-cmdline.html