当我尝试获取SHA-1数字时,它给我一个错误
I typed in;
keytool -list -v \
And then typed in;
-alias androiddebugkey -keystore ~/.android/debug.keystore
它在下面给我这个错误;
keytool error: java.lang.Exception: Keystore file does not exist:
/Users/FLT/.android/debug.keystore
java.lang.Exception: Keystore file does not exist:
/Users/FLT/.android/debug.keystore
at
java.base/sun.security.tools.keytool.Main.doCommands(Main.java:899)
at java.base/sun.security.tools.keytool.Main.run(Main.java:409)
at java.base/sun.security.tools.keytool.Main.main(Main.java:402)
在我的JavaVirtualMachines中,只有KEYTOOL而不是debug.keystore
我的JavaVirtualMachines位于Macintosh中,而不在我的USER中;
Macintosh HD/Library/Java/JavaVirtualMachines/jdk-
12.0.2.jdk/Contents/Home/bin
I don’t know in which folder debug.keystore is located.
but when I go to command and type
cd ~/
ls
ls -al
It’s there in the list
此命令对我有用:
keytool -list -keystore debug.keystore