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

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.