title: Could not find com.android.tools.build:gradle:4.1.3. after gradle upgrade in Android studio
body: <p>After upgrading <code>Android studio</code> from 4.0.x to 4.1.3 for React native 0.64 app, I took the recommendation of upgrading gradle to 4.1.3 and followed the instruction to upgrade. However the React Native app rebuild throws an error:</p>
  <pre><code>Could not find com.android.tools.build:gradle:4.1.3.
  Searched in the following locations:
    - https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.3/gradle-4.1.3.pom
  </code></pre>
  <p>Clicking the above <code>https://jcenter.binatray.com/com/...</code> landed on page of <code>Forbidden</code>. Is it the cause of the error?</p>
  <p>I also changed gradle version in <code>gradle-wrapper.properties</code> to 6.8.3 from 6.7:</p>
  <pre><code>  distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
  </code></pre>
  <p>Also in <code>build.gradle</code>, there is:</p>
  <pre><code>repositories {
          mavenLocal()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url(&quot;$rootDir/../node_modules/react-native/android&quot;)
          }
          maven {
              // Android JSC is installed from npm
              url(&quot;$rootDir/../node_modules/jsc-android/dist&quot;)
          }
  
          google()
          jcenter()
          maven { url 'https://www.jitpack.io' }
          maven { url 'https://maven.google.com'
                  name 'Google'
          } 
      }
  </code></pre>
  <p>Sync project throws the same error.</p>
  <p>Update: build.gradle</p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      ext {
          buildToolsVersion = &quot;29.0.3&quot;
          minSdkVersion = 21
          compileSdkVersion = 29
          targetSdkVersion = 29
          ndkVersion = &quot;20.1.5948944&quot;
      }
      repositories {
          google()
          jcenter()
          mavenCentral()
      }
      dependencies {
          classpath('com.android.tools.build:gradle:4.1.3')
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          mavenLocal()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url(&quot;$rootDir/../node_modules/react-native/android&quot;)
          }
          maven {
              // Android JSC is installed from npm
              url(&quot;$rootDir/../node_modules/jsc-android/dist&quot;)
          }
  
          jcenter()
          maven { url 'https://www.jitpack.io' }
          maven { url 'https://maven.google.com' } //for react-native-image-crop-picker
          mavenCentral()
      }
  }
  </code></pre>