当我尝试获取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
关于java - 当我尝试从命令或Android Studio获取SHA-1数字时,它给了我一个错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/57296054/