Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

"Adding a Shake Detector" project files displaying the following error when I attempt to run the app: "Error generating final archive: Debug Certificate expired on 10/9/11 1:11 PM"

I have included a screenshot here. Has anyone had this problem or know what to do?

http://screencast.com/t/Snq8OqLCU

1 Answer

Remove debug.keystore from your user android directory

Windows

  1. Delete debug.keystore located in C:\Documents and Settings\\[user]\.android or C:\Users\[username]\.android
  2. Clean and build your project.

Mac & Linux

  1. Delete debug.keystore located in ~/.android/debug.keystore
  2. Clean and build your porject.

If you don't know where your debug.keystore ? In Eclipse select Windows -> Preferences -> Android -> Build -> Check for "Default debug keystore: "

Reference : “Debug certificate expired” error in Eclipse Android plugins