문제
안드로이드 Firebase Analytics 연동중에 아래와 같은 에러가 발생하면
Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
그리고 해결
루트 수준(프로젝트 수준) Gradle 파일(build.gradle)에서
Google 서비스 Gradle 플러그인을 포함하는 규칙을 추가하고 Google의 Maven 저장소 추가.
buildscript {
repositories {
google() // Google's Maven repository
}
dependencies {
// ...
classpath 'com.google.gms:google-services:4.3.13' // Google Services plugin
}
}
allprojects {
// ...
repositories {
google() // Google's Maven repository
}
}
모듈(앱 수준) Gradle 파일(일반적으로 app/build.gradle)에 Google 서비스 Gradle 플러그인
apply plugin: 'com.google.gms.google-services' 추가하면 해결!
apply plugin: 'com.google.gms.google-services'
https://developers.google.com/android/guides/google-services-plugin
The Google Services Gradle Plugin | Google Play services | Google Developers
The Google Services Gradle Plugin Introduction As part of enabling Google APIs or Firebase services in your Android application you may have to add the google-services plugin to your build.gradle file: dependencies { classpath 'com.google.gms:google-servic
developers.google.com