Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

I keep getting this error when I build the app "unable to recreate missing debug keystore android studio"

Im at the step when he says to build the "hello world" stage.

2 Answers

The debug key-store is a key that signs your app so it has permission to run on an android device while you test. The store can give your a few problems one of the main being it has expired. This seems to be another issues and it normal states that it has expired but try this fix as it may clear it up.

Via Android Dev Site

To fix this problem, simply delete the debug.keystore file. The default storage location is in ~/.android/ on OS X and Linux, in C:\Documents and Settings<user>.android\ on Windows XP, and in C:\Users<user>.android\ on Windows Vista and Windows 7.

It should then make a new key on the next build of the app.

If deleting the file dose not work it my be a permission problem with the install files or you may need to manually creating a new key. What operating system are you using?

Thanks for the quick reply Andrew. I am using OS X. How would I plug it into terminal to delete the ~/.android/ ?

I tried: sudo rm -Rf ~/.android/ but it the next line was empty.