1. In the Eclipse project, right-click the project and choose Android> Generate a signature application package from the shortcut menu:
2. Select the android project to be packaged:
3. If the private key file already exists, select the private key file and enter the password. If not, see steps 6th and 7 to create the private key file:
4. Enter the private key alias and password:
5. Select the location of the APK storage and complete the settings.
Start generation:
6. If the private key file does not exist, create the private key file:
7. Enter the information required for the private key file and create it:
* Add your own note: do not contain Chinese characters or spaces at the end of the SDK installation directory. Otherwise, unnecessary errors may occur. If your installation path contains Program
Files (with spaces), ADT packaging will report an error, ant packaging will also report an error, it does not matter, do not re-install, solution: change program files to progra ~ When configuring SDK environment variables and configuring SDK paths in eclipse ~ 1. (It cannot be changed to another one. It can only be progra ~ 1. Do not believe it. This is the DOS specification ).
From: http://jojol-zhou.iteye.com/blog/719428