keytool error: java.lang.Exception: Keystore file does not exist: path-to-debug-or-production-keystore
keytool error: java.lang.Exception: Keystore file does not exist: path-to-debug-or-production-keystore
andrioid 앱 push 알림 api 사용을 위해 OAuth 클라이언트를 만들려고 한다.
그런데 SHA-1 디지털 지문이 필요하단다.
친절하게 command 쓰라고 google이 넣어놨다.
Use this command to get the fingerprint.
하지만 명령어 그대로 복사해서 쓰면 안된다.
명령어를 잘 읽어보면 path-to-debug-or-production-keystore 즉 path 너가 똑바로 적어라는 소리다.
지금 단계는 개발중이기 때문에 debug.keystore를 쓸것이다.
debug.keystore
해당 key store는 android -> app -> debug.keystore에 있다.
React-Native 프로젝트에서 아래 명령어로 다시 실행해보자.
keytool -keystore ./android/app/debug.keystore -list -v
참고로 password를 묻는데
디버그 keystore의 기본 비밀번호는 android이다.
Enter keystore password
성공하면 위의 화면이 뜰것이다.