How to build project with release mode?

Sorry for my noob question. When I build my project with cygwin and ant,my apk is name-debug.apk
I think it was builded with debug mode. So how to build project with release mode?

Hey, I was wondering the same thing. The answers are all in the following document. You basically just build with “ant release” instead of “ant debug”.

http://developer.android.com/tools/building/building-cmdline.html