This can be done from the command line using something like:
$ cd project
$ android update project --path .
$ ant release
This requires:
- Installed Android SDK and subdirectory
toolson the way. - Ant and in transit.
The result will be written to a subdirectory binas "project-release.apk".
source
share