[2011-08-2919: 47: 03-hello world] Error in generating the final archive: the debugging certificate is in10-6-18pm10:
When you publish, you can right-click the project-> Android tools-> Export the signed android package to generate the signed package. In this process, if you don't have your own private key, adt will automatically call keytool to generate it for you. Please protect your private key, or someone will steal it, so you will use a signature program that attacks you.
Pay attention to the version number before publishing. There are two fields in manifest.xml: android:versionCode=" 1 "and android: versionname =" 1 .0 ",in which the former is used by programs or Android, and1is added. The latter is for users to see. Here you can use major version number, minor version number, build number and light string.
First, we need a keystore. Of course, if you already have it, you don't need this step:
Under cmd:
Enter the bin directory of jdk, so that the android.keystore file will be generated in this directory, and we need this file when signing.
c:\ Program Files \ Java \ JDK 1 . 6 . 0 _ 10 \ bin & gt; keytool-genkey-alias Android . keystore-keyalg RSA-validity 20000-keystore Android . keystore
Enter the keystore password:
Enter the new password again:
What's your first and last name?
[Unknown]: What's the name of your organizational unit, Qiaoling?
[unknown]: www.chinaandroid.com.
What is the name of your organization?
[unknown]: www.chinaandroid.com.
What is the name of your city or region?
[Unknown]: Haidian
What is the name of your state or province?
[unknown ]: BJ
What is the two-letter country code of this unit?
[Unknown ]: 86
Cn = Qiaoling, OU = www.chinaandroid.com, O = www.chinaandroid.com, l = Haidian, ST = bj, c = 86, right?
[no ]: y
enter
Among them, the parameter -validity is the valid days of the certificate, and here we write it a little bigger, 10000 days. There is also no response to entering the password (even if entered) and backspace, tab, etc. All belong to the password content and need to be signed. Apk file.
Then sign:
In Eclipse, right-click the project that needs to be signed->; Android tools-> Export signed application package ...
The following dialog box appears, and select the item to be signed.
Next, select the location of the android.keystore file generated above and the set password.
then
Next, select the location and name of the signature generation file.
Done, done. ...