you can try putting them in bin / classes and then use the "ant" command to create your application
cd /path/to/my/app ant release
he will ask you every time your secret key is signed by the application, you can configure it for automatic signing by editing the build.properties file:
key.store=release.keystore key.alias=release key.store.password=my_key_password key.alias.password=my_key_password
you can also research the Android SDK, find the ANT build scripts that it actually uses, and insert your obfuscator / optimizer call in the middle of the build process.
source share