-
[Firebase] android, plugins {} block 에러 해결Memo/Dart & Flutter 2024. 2. 12. 14:39
⚠️ 문제
Android 앱에 Firebase SDK를 추가하는 과정에서 아래와 같은 에러가 발생하였다.
FAILURE: Build failed with an exception.
...
See https://docs.gradle.org/7.5/userguide/plugins.html#sec:plugins_block for information on the plugins {} block
@ line 33, column 1.
plugins {
^
1 error💡 원인
Firebase에서 시킨대로 프로젝트 수준의 'build.gradle' 파일에 플러그인을 등록한 것이 문제였다.
(Firebase에서 잘못 적어놓은 듯하다..)
✅ 해결
plugins 항목을 'build.gradle'이 아닌, 'settings.gradle' 파일에 추가하면 해결된다.
이것 때문에 classpath로 옮겨 적고, 버전도 바꾸고, CLI도 설치하고 했었는데..
stackoverflow 최고..👍
🔗 참고 자료
Plugin com.google.gms.google-services version 4.4.0 apply: false was not found in any of the following sources
My error message: Build file 'C:\Users\kcebu\StudioProjects\fitness_app\android\build.gradle' line: 16 Plugin [id: 'com.google.gms.google-services', version: '4.4.0', apply: false] was not found i...
stackoverflow.com
'Memo > Dart & Flutter' 카테고리의 다른 글
[Flutter] json 데이터 한글 깨짐 현상. 해결 방법 (0) 2024.02.22 [Flutter] PlatformException(null-error, Host platform returned null value for non-null return value., null, null). 에러 해결 (0) 2024.02.05 [Flutter] App requires Multidex support. 에러 해결 (0) 2024.02.04 [Flutter] Your project requires a newer version of the Kotlin Gradle plugin. 에러 해결 (0) 2024.02.04 [Flutter] SnackBar와 Toast 차이점 (0) 2024.01.15