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 Build a Simple Android App (2014) Getting Started with Android Running the Fun Facts Project

I am getting this error while compiling the app

This error is happening every time I compile the app:

Error:Execution failed for task ':app:validateDebugSigning'.

Unable to recreate missing debug keystore.

I am running a mac with OS X

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

From possible solutions from Stackoverflow: http://stackoverflow.com/questions/21415156/unable-to-recreate-missing-debug-keystore and http://stackoverflow.com/questions/20788875/android-studio-unable-to-recreate-missing-debug-keystore

Android apps are digitally signed as proof they are valid apps from a verified source. When you release an app and put it up on Google Play or other app stores you need to create a release key and sign the app with it. This is all gone over in the next course, Publish an Android App, so don't worry too much about the details of doing that yet.

While you're writing and testing your app it still needs to be signed. Android Studio automatically generates a "debug key" for you to do that. In your case, it's having trouble. Either a path isn't set right or your .android directory is read-only.

Thank you, This worked.