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 trialSoda Springs
Courses Plus Student 132 PointsKeystore error
keytool error: java.lang.Exception: Keystore file does not exist: ~/.android/deb ug.keystore how do I add it so it exist or how do I fix this error C:\Program Files\Java\jdk1.7.0_67\bin>cd C:\Program Files\Java\jre7\bin
C:\Program Files\Java\jre7\bin>keytool -exportcert -alias androiddebugkey -keyst ore ~/.android/debug.keystore -list -v keytool error: java.lang.Exception: Keystore file does not exist: ~/.android/deb ug.keystore java.lang.Exception: Keystore file does not exist: ~/.android/debug.keystore at sun.security.tools.KeyTool.doCommands(Unknown Source) at sun.security.tools.KeyTool.run(Unknown Source) at sun.security.tools.KeyTool.main(Unknown Source)
2 Answers
Harry James
14,780 PointsHey Soda Springs and Eric De Wildt!
Getting your SHA1 key is a little more complicated on a Windows system so be sure to take a look at my guide for getting it on a Windows System.
As for your specific question, you can find the debug keystore using Windows Explorer: find where your .android directory is located (Usually under Users >> [YOUR WINDOWS USERNAME]).
Hope it helps and if you have any further problems with this, give me a shout :)
Trainer Workout
22,341 PointsIt still doesn't work in Windows Command Prompt after running this.
cd C:\Program Files\Java\jdk1.8.0_66\bin
keytool -exportcert -alias androiddebugkey -keystore C:/Users/dev1/.androiddebug/keystore -list -v
Kyle Baker
8,211 Pointsmy command looks like this on my windows pc
keytool -exportcert -alias androiddebugkey -keystore C:\Users\KyBa.android\debug.keystore -list -v
Eric De Wildt
Courses Plus Student 13,077 PointsEric De Wildt
Courses Plus Student 13,077 PointsI got this same problem on windows