当我尝试获取 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