Translate

Tuesday, July 17, 2012

Why do I get debug certificate expired error when I debug Android app from Eclipse?

When I ran my Android app from eclipse IDE I got "Error generating final archive: Debug certificate expired" error at the console. I investigated on net and found following solution for the issue:

Step1: Goto "C:\Users\<user-name>\.android" (In fixed in Windows 7)
Step2: Delete "debug.keystore" file there or delete your debug certificate under ~/.android/debug.keystore on Linux and Mac OS X.
Step3: The Eclipse plugin should then generate a new certificate when next time you try to build a debug package. You may need to clean and then build the project to generate the certificate.

The self-signed certificate used to sign your application in debug mode (the default on Eclipse/ADT and Ant builds) will have an expiration date of 365 days from its creation date.

Note: You cannot release your application to the public when signed with the debug certificate.

References:
  1. http://developer.android.com/tools/publishing/app-signing.html
  2. https://groups.google.com/forum/?fromgroups#!topic/android-beginners/cBsrlCSZYhI
  3. http://stackoverflow.com/questions/2194808/debug-certificate-expired-error-in-eclipse-android-plugins

1 comment:

  1. Interesting post! I enjoyed reading it!
    Thanks for sharing this useful info.keep updating same way.
    cheers!
    iCaption That

    ReplyDelete