I am using Eclipse Android plugins to build a project, but I am getting this error in the console window:
[2010-02-03 10:31:14 - androidVNC]Error generating final archive:
Debug certificate expired on 1/30/10 2:35 PM!
How do I fix it?
I am using Eclipse Android plugins to build a project, but I am getting this error in the console window:
[2010-02-03 10:31:14 - androidVNC]Error generating final archive:
Debug certificate expired on 1/30/10 2:35 PM!
How do I fix it?
If a certificate expires in the middle of project debugging, you must do a manual uninstall:
Please execute
adb uninstall <package_name>
in a shell.On Vista, this worked:
DOS:
del c:\user\dad\.android\debug.keystore
ECLIPSE: In Project, Clean the project. Close Eclipse. Re-open Eclipse.
ECLIPSE: Start the Emulator. Remove the Application from the emulator.
You are good to go.
I was pretty worried when I say that error, but I fixed it from reading here and playing around for 10 minutes.
Delete: debug.keystore located in
C:\Documents and Settings\\[user]\.android
, Clean and build your project.C:\Users\[username]\.android
and delete debug.keystore file.Clean and build your project.
Delete your keystore located in
~/.android/debug.keystore
Clean and build your project.In all the options if you can´t get the new debug.keystore just restart eclipse.
It's a pain to have to delete all your development .apk files, because the new certificate doesn't match so you can't upgrade them in all your AVDs. You have to get another development MAP-API key as well. There's another solution.
You can create your own debug certificate in
debug.keystore
with whatever expiration you want. Do this in the.android
folder under yourHOME
directory:keytool.exe
can be found in the JDK bin folder (e.g.C:\Program Files\Java\jdk1.6.0_31\bin\
on Windows).ADT sets the first and last name on the certificate as "Android Debug", the organizational unit as "Android" and the two-letter country code as "US". You can leave the organization, city, and state values as "Unknown". This example uses a validity of 14000 days. You can use whatever value you like.
Delete your debug certificate under
~/.android/debug.keystore
on Linux and Mac OS X; the directory is something like%USERPROFILE%/.android
on Windows.The Eclipse plugin should then generate a new certificate when you next try to build a debug package. You may need to clean and then build to generate the certificate.
Upon installation, the Android SDK generates a
debug
signing certificate for you in a keystore calleddebug.keystore
. The Eclipse plug-in uses this certificate to sign each application build that is generated.Unfortunately a debug certificate is only valid for 365 days. To generate a new one you must delete the existing
debug.keystore
file. Its location is platform dependent - you can find it in Preferences - Android - Build - Default debug keystore.