title: How to solve Could not determine the dependencies of task ':app:lintVitalRelease' [status code 502 from server: Bad Gateway]
body: <p>Hi I am trying to build an app of flutter, but I get this error log</p>
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not determine the dependencies of task ':app:lintVitalRelease'.
  &gt; Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
     &gt; Could not resolve com.google.android.gms:play-services-location:16.+.
       Required by:
           project :app &gt; project :location
        &gt; Failed to list versions for com.google.android.gms:play-services-location.
           &gt; Unable to load Maven meta-data from https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml.
              &gt; Could not get resource 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'.
                 &gt; Could not GET 'https://google.bintray.com/exoplayer/com/google/android/gms/play-services-location/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 7m 49s
  </code></pre>
  <p>I have tried to follow the step in this link <a href="https://stackoverflow.com/questions/70166663/could-not-get-play-services-location-maven-metadata-xml-received-status-code">Could not GET &#39;play-services-location/maven-metadata.xml&#39;. Received status code 502 from server: Bad Gateway</a>
  but I still get the error, is there a way to sole this case. I have been trying to solve this since yesterday, but still get the error. And here is my <code>android/build.gradle</code></p>
  <pre><code>buildscript {
      ext.kotlin_version = '1.3.61'
      repositories {
          google()
          // jcenter()
          mavenCentral()
      }
  
      dependencies {
          // classpath 'com.android.tools.build:gradle:3.5.0'
          // classpath 'com.android.tools.build:gradle:3.4.2'
          classpath &quot;com.android.tools.build:gradle:4.2.0&quot;
          
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
          classpath 'com.google.gms:google-services:4.3.3'
      }
  }
  
  allprojects {
      repositories {
          google()
          // jcenter()
          mavenCentral()
      }
  }
  
  rootProject.buildDir = '../build'
  subprojects {
      project.buildDir = &quot;${rootProject.buildDir}/${project.name}&quot;
      
  }
  subprojects {
      project.evaluationDependsOn(':app')
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  
  //
  </code></pre>
  <p>and also I implement <code>distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip</code> inside Gradle-wrapper.properties</p>