Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why don't I have debug.keystore in ~/.android folder(for mac)?

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)

like image 909
ishandutta2007 Avatar asked Mar 09 '19 03:03

ishandutta2007


People also ask

How do I debug keystore on Mac?

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.

Where can I find debug keystore?

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.

Where is the keystore file on Mac?

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 .

Where is the Android keystore located?

The default location is /Users/<username>/. android/debug. keystore.


1 Answers

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

like image 73
ישו אוהב אותך Avatar answered Sep 26 '22 00:09

ישו אוהב אותך