[当我尝试从命令或Android Studio获取SHA-1数字时,它给我一个错误

问题描述 投票:0回答:1

当我尝试获取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
java macos android-studio macos-mojave java-12
1个回答
0
投票

此命令对我有用:

keytool -list -keystore debug.keystore

© www.soinside.com 2019 - 2024. All rights reserved.