Если вы хотите использовать последние версии, то вы можете использовать firebase BoM
, в поле build.gradle
напишите следующее:
dependencies {
// Import the platform
implementation platform('com.google.firebase:firebase-bom:20.0.1')
// When using a BoM, dependencies don't require a specified version
// If you do specify a version, it overrides the library version specified in the BoM
implementation 'com.google.firebase:firebase-core'
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-firestore'
}
com.google.firebase:firebase-bom:20.0.1
будет содержать последнюю версию всехбиблиотеки Firebase, затем для использования каждой конкретной библиотеки вы добавляете их как обычно, но без версии.
Ссылки:
https://firebase.google.com/docs/android/setup#firebase-bom