1if you are using firebase bom then don't mention version (x.y.z)
2highly recomended to use firebase bom
3
4
5dependencies {
6 // Import the BoM for the Firebase platform
7 implementation platform('com.google.firebase:firebase-bom:28.2.0')
8
9 // Declare the dependency for the Cloud Firestore library
10 // When using the BoM, you don't specify versions in Firebase library dependencies
11 implementation 'com.google.firebase:firebase-firestore'
12}
13
14