firebase

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

이나주니 2024. 12. 3. 14:20
반응형

빈번 하게 발생하는

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

 

나의 문제

 

구글 클라우드와 FireBase에 SHA key값을 각각 넣어놓아서 만들어진 오류

결론 FireBase에만 SHA key값을 넣고 구글클라우드 클라이언트 ID 는 없애자!

 

FireBase

 

 

구글 클라우드

 

 

프로젝트에서 cd android 를 통해 안드로이드 디렉토리 이동

 

./gradlew signingReport 명령어를 통해

각각의 Debug, Release SHA 키를 추출한다

 

이떄 Config 가 Debug 인지 Release 인지 잘 확인

 

 

확인된 SHA1 값을 이용해서 맨 위 사진처럼 Firebase에 잘 등록해주자

 


추가

 

많은 사람들은 해당 이유로 오류를 겪었다고 하는데 다행히 작성이는 해당 문제는 아니었다

작성이는 올바르게 입력해놓았었다

 

 

필요시 참고 하면 좋을듯

https://github.com/flutter/flutter/issues/33393#issuecomment-510395178

 

google sign in ^4.0.1+3 plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

Details After sigining in to google at this line (Android) GoogleSignInAccount googleUser = await _googleSignIn.signIn(); I get this exception PlatformException(sign_in_failed, com.google.android.g...

github.com

 

반응형