본문 바로가기
개발/Android

[Android] 안드로이드 스튜디오에서 SHA-1 지문 확인 방법

by blacktree 2022. 7. 14.
반응형

우리가 Push 기능을 이용하고자 할 때 Firebase에 프로젝트를 생성하게 된다. 

생성 시 안드로이드에 경우 패키지 이름과 SHA 인증서 지문을 등록해주어야 한다. 

 

SHA 인증서 지문은 어디서 얻을 수 있을까?

구글 페이지에 보면 keytool 볼 수 있다고 한다. 

 

https://developers.google.com/android/guides/client-auth

 

Authenticating Your Client  |  Google Play services  |  Google Developers

Authenticating Your Client Certain Google Play services (such as Google Sign-in and App Invites) require you to provide the SHA-1 of your signing certificate so we can create an OAuth2 client and API key for your app. Using Play App Signing If you've publi

developers.google.com

 

그러나 더 쉬운 방법이 있어서 소개합니다.

안드로이드 스튜디오에서 간단히 확인이 가능하다.

 

  1. 우측 상단에 'Gradle'버튼을 누른다. 없다면 View -> Tool Window -> Gradle
  2. 프로젝트 명 밑에 Tasks -> android -> signingReport 클릭한다.
  3. 조금 기다리면 하단 Run 창에서 설정값이 보인다. 
  4. 아래로 내려가서 찾으면 SHA1값을 확인할 수 있다. 

728x90
반응형

댓글