Could not find com.google.gms:google-services:4.1.0 [duplicate]
Asked Answered
P

2

15

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?

Prowl answered 10/12, 2018 at 14:45 Comment(2)
I've the same problem with a local gradle sync. I checked the Google's Maven Repository and it seems empty (com.google.gms).Gilgamesh
For now, I've just added maven { url 'dl.bintray.com/android/android-tools' } under repositories and the build have passed. Thanks to @David Sucharda. As mentioned in other posts this solution is a temporary fix till we know what happened to the google() and jcenter() resources.Prowl
E
6

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.

Exploit answered 10/12, 2018 at 17:5 Comment(0)
P
1

For now, I've just added:

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

under repositories and the build have passed. Thanks to David Sucharda for the solution. As mentioned in other posts this solution is a temporary fix till we know what happened to the google() and jcenter() resources.

Prowl answered 10/12, 2018 at 16:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.