To review release notes for the Firebase console and for other Firebase platforms and related SDKs, refer to the Firebase Release Notes.
Learn how to install these SDKs in your app: Add Firebase to your Android Project.
Latest SDK versions
build.gradle
buildscript {
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
}
dependencies {
// ...
// Add the following line:
classpath 'com.google.gms:google-services:4.3.3' // Google Services plugin
}
}
allprojects {
// ...
repositories {
// Check that you have the following line (if not, add it):
google() // Google's Maven repository
// ...
}
}
app/build.gradle
apply plugin: 'com.android.application'
// Add the following line:
apply plugin: 'com.google.gms.google-services' // Google Services plugin
android {
// ...
}
app/build.gradle
Analytics enabled
dependencies {
// ...
// Add the Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-analytics:17.4.0'
// Add the dependencies for any other Firebase products you want to use in your app
// For example, to also use Firebase Authentication
implementation 'com.google.firebase:firebase-auth:19.3.1'
// Getting a "Could not find" error? Make sure that you've added
// Google's Maven repository to your root-level build.gradle file
}
Analytics not enabled
dependencies {
// ...
// Add the dependencies for the Firebase products you want to use in your app
// For example, to use Firebase Authentication
implementation 'com.google.firebase:firebase-auth:19.3.1'
// Getting a "Could not find" error? Make sure that you've added
// Google's Maven repository to your root-level build.gradle file
}
Java Android
Service or Product
AdMob
com.google.android.gms:play-services-ads:19.1.0
Analytics
com.google.firebase:firebase-analytics:17.4.0
App Indexing
com.google.firebase:firebase-appindexing:19.1.0
Authentication
com.google.firebase:firebase-auth:19.3.1
Cloud Firestore
com.google.firebase:firebase-firestore:21.4.3
Cloud Functions for Firebase Client SDK
com.google.firebase:firebase-functions:19.0.2
Cloud Messaging
com.google.firebase:firebase-messaging:20.1.6
Cloud Storage
com.google.firebase:firebase-storage:19.1.1
Crashlytics
com.crashlytics.sdk.android:crashlytics:2.10.1
Alternatively, to use the Firebase Crashlytics SDK (beta):
com.google.firebase:firebase-crashlytics:17.0.0
Dynamic Links
com.google.firebase:firebase-dynamic-links:19.1.0
In-App Messaging
com.google.firebase:firebase-inappmessaging:19.0.6
In-App Messaging Display
com.google.firebase:firebase-inappmessaging-display:19.0.6
Performance Monitoring
com.google.firebase:firebase-perf:19.0.7
Realtime Database
com.google.firebase:firebase-database:19.3.0
Remote Config
com.google.firebase:firebase-config:19.1.4
Firebase Bill of Materials (BoM)
com.google.firebase:firebase-bom:25.3.0
The latest Firebase BoM version contains the latest versions of each Firebase Android library available at the BoM's release. For the library versions mapped to previous BoM versions, review the release notes for that version.
Google Play services plugin
com.google.gms:google-services:4.3.3
Top comments (0)