ls ~/.android
analytics.settings avd/ cache/ metrics/
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
keytool error: java.lang.Exception: Keystore file does not exist: /Users/ishandutta2007/.android/debug.keystore java.lang.Exception: Keystore file does not exist: /Users/ishandutta2007/.android/debug.keystore at sun.security.tools.keytool.Main.doCommands(Main.java:745) at sun.security.tools.keytool.Main.run(Main.java:343) at sun.security.tools.keytool.Main.main(Main.java:336)
The debug. keystore is in the folder that you say, but it's hidden so you can't see it on Finder. If you could see the debug. keystore, that's the right folder.
The default keystore file: debug. keystore is present in the folder . android which is usually located in the default home folder of your operating system of the user who installed that Android SDK.
The default location is /Users/<username>/. android/debug. keystore . Go into Finder, navigate to your home directory, then press Command+Shift+G and in the pop-up type .
The default location is /Users/<username>/. android/debug. keystore.
There should be something wrong with your systems. But usually, the next time you build and run a debug version of your app, Android Studio will regenerates a new keystore and debug key for your. Read more details at Expiry of Debug certificate
In case your Android Studio still not regenerate the debug key, you can use the following command:
$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
Keystore name: debug.keystore
Keystore password: android
Key alias: androiddebugkey
Key password: android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With