42

When building Android project in Eclipse, Android SDK gives error like this:

error:

 Description    Resource    Path    Location    Type
1) Error generating final archive: Debug Certificate expired on 7/9/11 6:31 PM     MapByLocation        Unknown Android Packaging Problem



 2)Error generating final archive: Debug Certificate expired on 7/9/11 6:31 PM  PageCurlAnimation       Unknown Android Packaging Problem

I do not know how to solve. please help me.

Bhavik Kamdar
  • 301
  • 1
  • 7
  • 15
M.A.Murali
  • 9,158
  • 30
  • 98
  • 169

4 Answers4

59

To fix this problem, simply delete the debug.keystore file.

The default storage location for AVDs is

  • In ~/.android/ on OS X and Linux.
  • In C:\Documents and Settings\<user>\.android\ on Windows XP
  • In C:\Users\<user>\.android\ on Windows Vista and Windows 7.

Also see this link, which can be helpful.

Community
  • 1
  • 1
CeKup
  • 979
  • 9
  • 6
4

Use the keytool utility to create a new debug keystore. The keystore that you are using has expired and that is the reason why you see the project shows up in eclipse with errors.

check this out http://www.androiddevelopment.org/tag/keytool/

Also before doing that delete the existing debug keystore from the location in Windows or Linux based on the OS you are using.

Aakash
  • 2,829
  • 6
  • 40
  • 71
0

Try this solution:

  1. go to folder C:\Users\(your pc name)\.android\

  2. delete debug.keystore file and then clean and run

Alex K
  • 21,162
  • 18
  • 101
  • 217
Shibi
  • 1
0

For Windows XP go to C:\Documents and Settings\%userprofile%\.android and delete debug.keystore, restart Eclipse and now your project will build without the error.

Example path: C:\Documents and Settings\raja.ap\.android\ For other Windows versions, find your user folder and then delete the file.

vallismortis
  • 6,155
  • 12
  • 65
  • 81
raja
  • 2,233
  • 2
  • 20
  • 25