I've followed this official guide to setup a working firebase+flutter project:
The problem comes when gradle tries to fetch the dependency com.google.gms:google-services:3.2.1
for the android build.
Apparently version 3.2.1
is currently missing from google's maven repository, it is available on other repositories as visible here , but the official google repository lacks this version as visible from my build output:
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.google.gms:google-services:3.2.1.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/3.2.1/google-services-3.2.1.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
https://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.pom
https://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
https://repo.maven.apache.org/maven2/com/google/gms/google-services/3.2.1/google-services-3.2.1.pom
https://repo.maven.apache.org/maven2/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
Required by:
project :
I'm totally new to both gradle and android, so I'm not aware of any risk involved using one of the other repositories linked above (bintray,spring plugins) and I hadn't any luck in finding such answers. If I wanna use google's official repository I have to downgrade to the version 3.1.0
, but the official firebase guide explicitly states that firebase is compatible with google services 3.2.1
, so I don't feel comfortable downgrading because I wouldn't want to deal with weird problems caused by version incompatibility.