“Debug certificate expired” error in eclipse android plugins

Asked By 10 points N/A Posted on -
qa-featured

I am using Eclipse Android plugins to build a new project but i am getting this error code 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!

 
Does anyone know how to fix it and any advise to prevent this error?
SHARE
Answered By 0 points N/A #87685

“Debug certificate expired” error in eclipse android plugins

qa-featured

Eclipse have default debug certificates, that are set to just one year expiry. The best solution is, delete the eclipse file, "debug.keystore" and let Eclipse generate a new debug.keystore, the next time you build.

 
To delete these files, you can go to “C:Documents and Settings\.android”. If you don't find it, try to find it in there: “C:Documents and Settings\Local SettingsApplication DataAndroid”.
 
For this solution, you just will have one year expiry again. So, if you want to trick the certification, after deleting those files, issue this command from the command prompt:
 
keytool -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity XXXX -dname “CN=Android Debug,O=Android,C=US”
 
For the XXXX, input how many days you want the certificate for, so your eclipse will get longer expiry time.
 
Hope this solution will solve your problem.

Login/Register to Answer

Related Questions