Could not find com.google.gms:google-services:4.1.0

  • A+
Category:Languages

Bitrise build is failing with the following error:

A problem occurred configuring root project 'src'.

Could not resolve all files for configuration ':classpath'. Could not find com.google.gms:google-services:4.1.0. Searched in the following locations: https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.1.0/google-services-4.1.0.pom https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.1.0/google-services-4.1.0.jar https://jcenter.bintray.com/com/google/gms/google-services/4.1.0/google-services-4.1.0.pom https://jcenter.bintray.com/com/google/gms/google-services/4.1.0/google-services-4.1.0.jar Required by: project :

I know the alternative temporary solution of using maven. But do anyone know why the problem is happening suddenly and a permanent solution?

 


Fixed by adding this to repositories:

maven { url "https://dl.bintray.com/android/android-tools" } 

https:// prefix is important, otherwise it could use address as relative path on your build machine.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: