Development/Error

[error] react-native-google-signin/google-signin [Error: DEVELOPER_ERROR]

mefd 2025. 3. 26. 14:51
728x90

검색해 보면 DEVELOPER_ERROR는 무조건 SHA-1 키 때문이라고 하던데,, 나는 잘 입력한 것 같은데 계속 안되길래 머리가 지끈했다.

결론 : 공식문서 보자

https://react-native-google-signin.github.io/docs/setting-up/get-config-file

 

Obtaining configuration information | React Native Google Sign In

Before getting your hands dirty with code, some configuration needs to be taken care of. Be patient, this is the most complex part of the setup.

react-native-google-signin.github.io

 

공식문서에서도 경고하는 DEVELOPER_ERROR....

해결 : 

안드로이드 스튜디오에서

./gradlew signingReport 입력

 

맨 위로!!

 

바로 위에 있는 SHA1 키 값은 전혀 다른것이다…. 나의 경우 :react-native-svg:signingReport의 키값이었다..

이것을 입력해두니까 에러가 계속 발생할 수밖에..

맨 위로 올라가보니 드디어 내가 원하는 키값을 발견했다.

Task :app:signingReport

debug SHA1 값이었다

 

파이어베이스에 해당 SHA-1 입력하니까 

로그인 성공.!

 

728x90