title: ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.android.gms:play-services-base
body: <p>As you can see here are the errors I'm getting when I'm trying to sync my project I'm getting this issue again and again. Gradle is in Online mode. I also tried offline mode but I found the same issue.</p>
  
  <p>I also tried so many methods but still, I can't able to solve this problem.</p>
  
  <p><strong>Gradle Sync Error</strong></p>
  
  <p><code>ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[10.2.1, 16.1.99]</code></p>
  
  <p><strong>Build.gradle (project)</strong></p>
  
  <p>// Top-level build file where you can add configuration options common to all sub-projects/modules.</p>
  
  <pre><code>buildscript {
  
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.6.3'
          classpath 'com.google.gms:google-services:4.3.3'
  
  
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          mavenLocal()
          jcenter()
          maven { url "https://maven.google.com" }
  
  
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p><strong>Build.gradle (:app)</strong></p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://plugins.gradle.org/m2/' }
  
      }
  
      dependencies {
          classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.6, 0.99.99]'
      }
  }
  apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
  
  
  repositories {
      maven { url 'https://maven.google.com' }
  }
  
  apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      useLibrary 'org.apache.http.legacy'
  
      defaultConfig {
          vectorDrawables {
              useSupportLibrary = true
          }
          vectorDrawables.useSupportLibrary = true
  
          applicationId "com.game.pubg.best.tournaments"
  
          // TODO: Please update the OneSignal ID below to yours!
          manifestPlaceholders = [onesignal_app_id: '6554b669-a188-4110-8836-b181ff64894b',
                                  // Project number pulled from dashboard, local value is ignored.
                                  onesignal_google_project_number: 'REMOTE']
  
          minSdkVersion 19
          targetSdkVersion 28
          versionCode 1
          versionName "1"
          multiDexEnabled true
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
          javaCompileOptions {
              annotationProcessorOptions {
                  includeCompileClasspath false
              }
          }
      }
      repositories {
          mavenCentral()
          maven { url 'http://repo1.maven.org/maven2' }
          maven { url "http://jcenter.bintray.com" }
          maven { url "https://www.jitpack.io" }
          maven { url "https://maven.google.com" }
          maven { url 'https://dl.bintray.com/drummer-aidan/maven' }
          maven { url "https://s3-ap-southeast-1.amazonaws.com/godel-release/godel/" }
          jcenter()
      }
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
  //        debug {
  //            minifyEnabled true
  //            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  //        }
      }
  }
  
  apply plugin: 'com.google.gms.google-services'
  
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:support-vector-drawable:28.0.0'
  
  //    implementation 'ai.devsupport.instamojo:instamojolib:0.1.6'
  
      androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2',
              {
                  exclude group: 'com.android.support', module: 'support-annotations'
              }
      )
      implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support:cardview-v7:28.0.0'
      implementation 'com.android.support:support-v4:28.0.0'
      implementation 'com.android.support:design:28.0.0'
  
  
  //    implementation 'com.google.android.gms:play-services-ads:17.0.0'
  
      implementation 'de.hdodenhof:circleimageview:3.1.0'
      implementation 'com.facebook.shimmer:shimmer:0.5.0'
  
      implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
  
      implementation 'com.github.bumptech.glide:glide:4.11.0'
  
      implementation 'com.onesignal:OneSignal:[3.13.0, 3.99.99]'
  
      implementation('com.paytm:pgplussdk:1.3.3')
              {
          transitive = true
              }
  
      implementation 'org.jsoup:jsoup:1.13.1'
  
      implementation 'com.android.support.constraint:constraint-layout:1.1.3'
      testImplementation 'junit:junit:4.13'
      androidTestImplementation 'com.android.support.test:runner:1.0.2'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  
      implementation 'com.google.firebase:firebase-core:16.0.1'
      implementation 'com.google.firebase:firebase-database:16.0.1'
      implementation 'com.google.android.gms:play-services-auth:18.0.0'
  
  }
  </code></pre>