title: Gradle sync failed: Could not find com.android.tools.build:gradle:5.5.1
body: <p>So, I'm running into an odd issue. I want to upgrade my gradle from version <code>2.14.1</code> to <code>5.5.1</code> and it won't let me. </p>
  
  <p>Here's the error I get: </p>
  
  <pre><code>Gradle sync failed: Could not find com.android.tools.build:gradle:5.5.1.
              Searched in the following locations:
              - https://jcenter.bintray.com/com/android/tools/build/gradle/5.5.1/gradle-5.5.1.pom
              - https://jcenter.bintray.com/com/android/tools/build/gradle/5.5.1/gradle-5.5.1.jar
              Required by:
              project :
              Consult IDE log for more details (Help | Show Log) (1 s 664 ms)
  </code></pre>
  
  <p>I was looking through some older posts and they all detail what it was required by and project but oddly, it's blank above. </p>
  
  <p>Here's how my <code>build.gradle</code> file looks like: </p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:5.5.1'
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p>I also double checked the gradle path in <code>Android Studio &gt; Properties &gt; Gradle &gt; Use local Gradle distribution</code> and I have it set to the root <code>gradle-5.5.1</code> directory. </p>
  
  <p>The log isn't helpful either, it says the same thing as above: </p>
  
  <pre><code>2019-07-14 08:28:28,670 [thread 268]   INFO - e.project.sync.GradleSyncState - Gradle sync failed: Could not find com.android.tools.build:gradle:5.5.1.
  Searched in the following locations:
    - https://jcenter.bintray.com/com/android/tools/build/gradle/5.5.1/gradle-5.5.1.pom
    - https://jcenter.bintray.com/com/android/tools/build/gradle/5.5.1/gradle-5.5.1.jar
  Required by:
      project :
  
  Consult IDE log for more details (Help | Show Log) (5 s 536 ms) 
  </code></pre>
  
  <p>What am I doing wrong? </p>
  
  <p>EDIT: <code>App &gt; build.gradle:</code> </p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 28
      buildToolsVersion '28.0.3'
  
  
      signingConfigs {
          liveConfig
                  {
                     //removed due to privacy 
                  }
  
          devConfig
                  {
                   //removed due to privacy
                  }
  
      }
  
  
      defaultConfig {
          applicationId "com.company.name"
          minSdkVersion 19
          targetSdkVersion 28
          multiDexEnabled true
      }
  
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              zipAlignEnabled true
              signingConfig signingConfigs.liveConfig
              buildConfigField "boolean", "IS_SERVICES_LIVE", "true"
              //no app created for flurry live tagging
              buildConfigField "boolean", "IS_FLURRY_LIVE", "true"
              buildConfigField "boolean", "IS_FLURRY_QA", "false"
              buildConfigField "String", "BASE_URL", "\"http://media.company.com/WebServices/prod/mobileapps/cc/data/\""
  
          }
  
          debug {
              signingConfig signingConfigs.devConfig
              buildConfigField "boolean", "IS_SERVICES_LIVE", "true"
              //no app created for flurry live tagging
              buildConfigField "boolean", "IS_FLURRY_LIVE", "false"
              buildConfigField "boolean", "IS_FLURRY_QA", "false"
              buildConfigField "String", "BASE_URL", "\"http://media.company.com/WebServices/prod/mobileapps/cc/data/\""
  
          }
  
      }
      aaptOptions {
          cruncherEnabled = false
      }
      dataBinding{
          enabled true;
      }
      lintOptions {
          abortOnError false
      }
  }
  
  dependencies {
      implementation 'com.android.support:support-v4:28.0.0'
  
      implementation files('libs/android-binding-v0.6-preview.jar')
      implementation 'com.flurry.android:analytics:8.2.0@aar'
      implementation files('libs/ormlite-android-5.0.jar')
      implementation files('libs/ormlite-core-5.0.jar')
      implementation 'com.google.android.gms:play-services-vision:18.0.0'
      implementation 'com.android.support:design:28.0.0'
      implementation 'com.android.support:appcompat-v7:28.0.0'
  
      implementation 'io.reactivex:rxjava:1.1.5'
      implementation 'io.reactivex:rxandroid:1.1.0'
      implementation 'com.android.support:cardview-v7:28.0.0'
      implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
      implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
      implementation 'com.squareup.retrofit2:retrofit:2.1.0'
      implementation 'com.github.bumptech.glide:glide:4.0.0'
  
      def appCenterSdkVersion = '2.0.0'
      implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
      implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
  
  }
  </code></pre>