공부방/Flutter

Execution failed for task ':app:mapDebugSourceSetPaths'

soycrab 2023. 8. 14. 14:45

Flutter에 Firebase 설정하고 나니 에러가 발생하기 시작한다. 

에러 내용은 아래와 같다.

 

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

 

해결방법 

해결 방법은 간단하다.  

Android build.gradle (project) 파일을 열어서.

classpath 'com.google.gms:google-services:4.3.10'

위와 같이 버전을 확인하고, 

4.3.14 이상으로 업그레이드 해 주면 오류가 해결된다. 

classpath 'com.google.gms:google-services:4.3.14'
반응형