All my firebase dependencies are using 12.0.1
version as I see on my build.gradle
file.
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.firebase') {
details.useVersion '12.0.1'
}
}
}
}
On sync it throws an error saying, Could not find com.google.firebase:firebase-bom:12.0.1
. I guess it means there is no version of 12.0.1
for firebase-bom
. The version I can see on the official website is 24.1.0
com.google.firebase:firebase-bom:24.1.0
Thus how can I modify my build.gradle file to load version 24.1.0
for firebase-bom
module.
My attempt so far:
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.firebase') {
details.useVersion '12.0.1'
}
if (details.requested.group == 'com.google.firebase'&& details.requested.module == 'firebase-bom') {
details.useVersion '24.1.0'
}
}
}
}
But this does not work. Can someone help me with how to set a different version for a specific module name.