title: Error Failed to install the app. Make sure you have the Android development environment set up
body: <p>I created the react-native project, then open the folder, at the terminal; After running "npm start" and then "react-native run-android" I was able to run it on the virtual device. However, when I do this from the vscode terminal, I get the following error;</p>
  
  <p>info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
  Jetifier found 863 file(s) to forward-jetify. Using 4 workers...
  info JS server already running.
  info Installing the app...
  Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
  Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain</p>
  
  <p>error Failed to install the app. Make sure you have the Android development environment set up: <a href="https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment</a>. Run CLI with --verbose flag for more details.
  Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
  Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
  Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain</p>
  
  <pre><code>at checkExecSyncError (child_process.js:601:13)
  at execFileSync (child_process.js:621:13)
  at runOnAllDevices (/home/myworldsoftware-u/İndirilenler/project2/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:74:39)
  at buildAndRun (/home/myworldsoftware-u/İndirilenler/project2/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41)
  at then.result (/home/myworldsoftware-u/İndirilenler/project2/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12)
  at &lt;anonymous&gt;
  at process._tickCallback (internal/process/next_tick.js:188:7)
  </code></pre>