Question:-
Eclipse Android plugins to build a project, but I am getting this error in the console window:
Note:- Top vote gain this problem in stackoverflow.
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:How do I fix it?
Debug certificate expired on 1/30/10 2:35 PM!
Note:- Top vote gain this problem in stackoverflow.
Answers:-
Delete your debug certificate under
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.
~/.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.
or
Upon installation, the Android SDK generates a
"debug" signing certificate for you in a keystore called
debug.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.
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.
or
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 your HOME directory:
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 14000.
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.
You can create your own debug certificate in debug.keystore with whatever expiration you want. Do this in the .android folder under your HOME directory:
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 14000.
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.
or
On Vista, this worked:
I was pretty worried when I say that error, but I fixed it from reading here and playing around for 10 minutes.
- 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.
I was pretty worried when I say that error, but I fixed it from reading here and playing around for 10 minutes.
0 comments
Thanks for your comment