title: Bitrise: Could not resolve all artifacts for configuration ':classpath' Could not resolve com.google.gms:google-services:4.2.0
body: <p>After updating <code>com.android.tools.build:gradle</code> and <code>com.google.gms:google-services</code> I can build project local (command <code>gradlew build --scan</code>) but in <code>Bitrise</code> I get BUILD FAILED and message:</p>
  <pre><code>FAILURE: Build failed with an exception.
  * What went wrong:
  A problem occurred configuring root project 'git'.
  &gt; Could not resolve all artifacts for configuration ':classpath'.
  &gt; Could not resolve com.android.tools.build:gradle:4.1.0.
  Required by:
  project :
  &gt; Could not resolve com.android.tools.build:gradle:4.1.0.
  &gt; Could not get resource 
  'http://dl.bintray.com/populov/maven/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'.
  &gt; Could not GET 
  'http://dl.bintray.com/populov/maven/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. 
  Received status code 502 from server: Bad Gateway
  &gt; Could not resolve com.google.gms:google-services:4.2.0.
  Required by:
  project :
  &gt; Could not resolve com.google.gms:google-services:4.2.0.
  &gt; Could not get resource 'http://dl.bintray.com/populov/maven/com/google/gms/google- 
  services/4.2.0/google-services-4.2.0.pom'.
  &gt; Could not GET 'http://dl.bintray.com/populov/maven/com/google/gms/google- 
  services/4.2.0/google-services-4.2.0.pom'. Received status code 502 from server: Bad Gateway
  &gt; Could not resolve io.fabric.tools:gradle:1.28.0.
  </code></pre>
  <p>I've tried every recommendations what I found, but I still get this message.</p>
  <p>My <code>build.gradle</code> file</p>
  <pre><code>buildscript {
  repositories {
      maven { url &quot;http://dl.bintray.com/populov/maven&quot; }
      google()
      mavenCentral()
      jcenter()
      maven {
          url 'https://maven.google.com/'
          name 'Google'
      }
      maven { url 'https://dl.bintray.com/android/android-tools' }
      maven { url 'https://maven.fabric.io/public' }
      maven {
          url 'https://google.bintray.com/exoplayer/'
      }
  }
  
  dependencies {
      classpath 'com.android.tools.build:gradle:4.1.0'
      classpath 'com.google.gms:google-services:4.2.0'
      classpath 'io.fabric.tools:gradle:1.28.0'
      classpath &quot;me.tatarka:gradle-retrolambda:3.7.1'
      classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
  }
  }
  allprojects {
  repositories {
      maven { url &quot;http://dl.bintray.com/populov/maven&quot; }
      mavenCentral()
      jcenter()
      maven {
          url &quot;https://maven.google.com/&quot;
          name 'Google'
      }
      maven { url &quot;https://dl.bintray.com/android/android-tools&quot; }
      maven { url &quot;https://maven.fabric.io/public&quot; }
      maven {
          url &quot;https://google.bintray.com/exoplayer/&quot;
      }
  }
  }
  </code></pre>
  <p>gradle-wrapper.properties:</p>
  <pre><code>distributionBase=GRADLE_USER_HOME
  distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
  distributionPath=wrapper/dists
  zipStorePath=wrapper/dists
  zipStoreBase=GRADLE_USER_HOME
  </code></pre>