[英]Why don't I have debug.keystore in ~/.android folder(for mac)?
ls ~/.android
analytics.settings avd/ cache/ metrics/ analytics.settings avd/缓存/指标/
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)密钥工具错误:java.lang.Exception:密钥库文件不存在:/Users/ishandutta2007/.android/debug.keystore java.lang.Exception:密钥库文件不存在:/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)
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.但通常,下次您构建和运行应用程序的调试版本时,Android Studio 会为您重新生成新的密钥库和调试密钥。 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:如果您的 Android Studio 仍然无法重新生成调试密钥,您可以使用以下命令:
$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
Keystore name : debug.keystore
密钥库名称: debug.keystore
Keystore password : android
密钥库密码: android
Key alias : androiddebugkey
密钥别名: androiddebugkey
Key password : android
密钥密码: android
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.