안녕하세요 IT 박사 Ho입니다

오늘은 flutter google login android를 사용할때 주의해야될 내용입니다.

firebase 홈페이지에 나와 있는데로 하기만 하면 문제가 생기는 경우는 거의 없다.

다만 나의 경우는 2번의 문제가 발생 했엇는데

1.  패키지 이름을 com.sample.app 이라면 com.sample 로만 작성해서 

FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:mapDebugSourceSetPaths'.

> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'

   > Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.

      > Querying the mapped value of provider(java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported


* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.


* Get more help at https://help.gradle.org


BUILD FAILED in 13s

Exception: Gradle task assembleDebug failed with exit code 1

이런 오류가 나왔습니다.
하루종일 뻘짓했네요
이런 오류는 패키지 이름에 오타를 확인해 보시길 바랍니다.
2. 이건 웹에서 오류가 났던 부분인데 
<meta name="google-signin-client_id" content="너의 아이디">
index.html 에 위에 코드가 빠져있으면 오류가 납니다.
저기서 너의 아이디 값은 어디서 받아오나?

구글 api 콘솔에 접속해서 
본인 프로젝트 선택하고 > 사용자 인증정보 

OAuth 2.0 에서 web client 클릭 > 클라이언트 ID를 넣으면 됩니다.