Foggy day

Android(안드로이드) - How to get debug/release SHA-1 본문

Android

Android(안드로이드) - How to get debug/release SHA-1

jinhan38 2021. 2. 11. 20:21

Sha key is needed when we use api like google and kakao and so on.

 

So, this article is about how to get debug/release SHA-1.

 

 

 

 

First, get debug sha-1.

It is very easy. double click "signingReport"

 

 

If you find Tasks tab, follow below.

1. Android Studio -> Preference -> Experimental ->  disable "Do not build Gradle task list during Gradle Sync"

2. File -> Sync Project with Gradle files

 

 

 

 

Second. get release sha-1

 

If you know correct way, It would be also very use. you follow below.

 

 

1. open terminal in Android Stuio.

 

 

 

2. input code.

keytool -list -v -keystore {keyStore Path} -alias {key alias}

ex) keytool -list -v -keystore D:\JinhanExample  -alias jinhanReleas

 

 

3. input keystore password

If you input correct code above, the phrase would be appear to enter keystore password.

After input, you can see information about certificate including sha-1

(It is korean)