title: react native Could not find com.android.volley:volley:1.1.1
body: <p>I use react native 66 when run <code>yarn android</code> got the Error</p>
  <blockquote>
  <p>yarn run v1.22.17
  $ react-native run-android
  info Running jetifier to migrate libraries to AndroidX. You can disable it using &quot;--no-jetifier&quot; flag.
  Jetifier found 1428 file(s) to forward-jetify. Using 4 workers...
  info JS server already running.
  info Installing the app...
  Configure project :react-native-firebase
  react-native-firebase: using React Native prebuilt binary from /Users/ha3an/Documents/Bahrami/phone/homeserviceuser/node_modules/react-native/android
  WARNING:: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
  Android SDK Build Tools 30.0.2 will be used.
  To suppress this warning, remove &quot;buildToolsVersion '28.0.3'&quot; from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
  Task :app:checkDebugAarMetadata FAILED
  Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See <a href="https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings" rel="nofollow noreferrer">https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings</a>
  39 actionable tasks: 2 executed, 37 up-to-date
  FAILURE: Build failed with an exception.
  What went wrong:
  Execution failed for task ':app:checkDebugAarMetadata'.
  Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
  Could not find com.android.volley:volley:1.1.1.
  Searched in the following locations:
  - <a href="https://repo.maven.apache.org/maven2/com/android/volley/volley/1.1.1/volley-1.1.1.pom" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2/com/android/volley/volley/1.1.1/volley-1.1.1.pom</a>
  - file:/Users/ha3an/.m2/repository/com/android/volley/volley/1.1.1/volley-1.1.1.pom
  - file:/Users/ha3an/Documents/Bahrami/phone/homeserviceuser/node_modules/react-native/android/com/android/volley/volley/1.1.1/volley-1.1.1.pom
  - file:/Users/ha3an/Documents/Bahrami/phone/homeserviceuser/node_modules/jsc-android/dist/com/android/volley/volley/1.1.1/volley-1.1.1.pom
  - <a href="https://dl.google.com/dl/android/maven2/com/android/volley/volley/1.1.1/volley-1.1.1.pom" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/com/android/volley/volley/1.1.1/volley-1.1.1.pom</a>
  - <a href="https://www.jitpack.io/com/android/volley/volley/1.1.1/volley-1.1.1.pom" rel="nofollow noreferrer">https://www.jitpack.io/com/android/volley/volley/1.1.1/volley-1.1.1.pom</a>
  Required by:
  project :app &gt; project :react-native-google-places &gt; com.google.android.libraries.places:places:1.1.0
  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 <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a>
  BUILD FAILED in 25s</p>
  </blockquote>
  <p>and build.qradle file is</p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      ext {
          buildToolsVersion = &quot;30.0.2&quot;
          minSdkVersion = 21
          compileSdkVersion = 30
          targetSdkVersion = 30
          ndkVersion = &quot;21.4.7075529&quot;
      }
      repositories {
          google()
          mavenCentral()
      }
      dependencies {
          classpath(&quot;com.android.tools.build:gradle:4.2.2&quot;)
          classpath(&quot;com.google.gms:google-services:4.3.10&quot;)
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          mavenCentral()
          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()
          maven { url 'https://www.jitpack.io' }
      }
  }
  </code></pre>
  <p>i try use jcenter on my build.gradle file it's build successfully but got error</p>
  <pre><code>Error: ENOENT: no such file or directory, open '/.../phone/homeserviceuser/http:/localhost:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false&amp;app=com.aloosalamati.homeserviceuser&amp;modulesOnly=false&amp;runModule=true'
      at Object.openSync (node:fs:585:3)
      at Object.readFileSync (node:fs:453:35)
      at getCodeFrame (/.../phone/homeserviceuser/node_modules/metro/src/Server.js:919:18)
      at Server._symbolicate (/.../phone/homeserviceuser/node_modules/metro/src/Server.js:992:22)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async Server._processRequest (/.../phone/homeserviceuser/node_modules/metro/src/Server.js:403:7) {
    errno: -2,
    syscall: 'open',
    code: 'ENOENT',
    path: '/.../phone/homeserviceuser/http:/localhost:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false&amp;app=com.aloosalamati.homeserviceuser&amp;modulesOnly=false&amp;runModule=true'
  }
  </code></pre>
  <p>i google it but can not find any solution  for it</p>