title: Flutter Could not determine the dependencies of task ':app:processDebugResources'
body: <p>Could not determine the dependencies of task ':app:processDebugResources'.</p>
  <blockquote>
  <p>Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
  Could not resolve com.facebook.android:facebook-login:[5,6).</p>
  </blockquote>
  <p>Required by:
  project :app
  &gt; Failed to list versions for com.facebook.android:facebook-login.
  &gt; Unable to load Maven meta-data from <a href="https://google.bintray.com/exoplayer/com/facebook/android/facebook-login/maven-metadata.xml" rel="nofollow noreferrer">https://google.bintray.com/exoplayer/com/facebook/android/facebook-login/maven-metadata.xml</a>.
  &gt; Could not get resource 'https://google.bintray.com/exoplayer/com/facebook/android/facebook-login/maven-metadata.xml'.
  &gt; Could not GET 'https://google.bintray.com/exoplayer/com/facebook/android/facebook-login/maven-metadata.xml'. Received status code 502 from server: Bad Gateway</p>
  <ul>
  <li>Try:
  Run with --stack trace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</li>
  </ul>
  <p><strong>app-level/buildgradle</strong></p>
  <pre><code>def localProperties = new Properties()
  def localPropertiesFile = rootProject.file('local.properties')
  if (localPropertiesFile.exists()) {
  localPropertiesFile.withReader('UTF-8') { reader -&gt;
      localProperties.load(reader)
  }
  }
  
  def flutterRoot = localProperties.getProperty('flutter.sdk')
  if (flutterRoot == null) {
  throw new GradleException(&quot;Flutter SDK not found. Define location with flutter.sdk in the 
  local.properties file.&quot;)
  }
  
  def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  if (flutterVersionCode == null) {
  flutterVersionCode = '1'
  }
  
  def flutterVersionName = localProperties.getProperty('flutter.versionName')
  if (flutterVersionName == null) {
  flutterVersionName = '1.0'
  }
  
  apply plugin: 'com.android.application'
  apply plugin: 'kotlin-android'
  apply from: &quot;$flutterRoot/packages/flutter_tools/gradle/flutter.gradle&quot;
  apply plugin: 'com.google.gms.google-services'
  android {
  compileSdkVersion 28
  
  sourceSets {
      main.java.srcDirs += 'src/main/kotlin'
  }
  
  lintOptions {
      disable 'InvalidPackage'
  }
  
  defaultConfig {
      // TODO: Specify your own unique Application ID 
    (https://developer.android.com/studio/build/application-id.html).
      applicationId &quot;com.deligence.hookup4u2&quot;
      minSdkVersion 21
      targetSdkVersion 28
      versionCode flutterVersionCode.toInteger()
      versionName flutterVersionName
      testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
  
      // Use code below for production build
      // For debug mode you need to comment above lines of code
      // Issue with 'libflutter.so'
      ndk {
          abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86'
      }
  }
  
  buildTypes {
      release {
          // TODO: Add your own signing config for the release build.
          // Signing with the debug keys for now, so `flutter run --release` works.
          signingConfig signingConfigs.debug
      }
  }
  }
  
  flutter {
  source '../..'
  }
  
   dependencies {
  implementation &quot;org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version&quot;
  testImplementation 'junit:junit:4.12'
  androidTestImplementation 'androidx.test:runner:1.1.1'
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  implementation 'com.google.firebase:firebase-analytics:17.2.2'
  implementation 'com.facebook.android:facebook-login:[5,6)'
  implementation 'com.google.firebase:firebase-messaging:20.1.6'
  }
  </code></pre>
  <p><strong>projectlevel/buildGradle</strong></p>
  <pre><code>  buildscript {
     ext.kotlin_version = '1.3.50'
     repositories {
      google()
      jcenter()
    }
  
  dependencies {
       classpath 'com.android.tools.build:gradle:3.5.0'
      classpath 'com.google.gms:google-services:4.3.3'
      classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
      
  }
  }
  
  allprojects {
  repositories {
      google()
      jcenter()
  }
  }
  
   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>