title: Failed to run React-Native on Android
body: <p>I am getting this error after following an official guidelines of React Native here:
  <a href="https://reactnative.dev/docs/environment-setup" rel="nofollow noreferrer">https://reactnative.dev/docs/environment-setup</a>
  I tried to open the simulator and run the command again but I am getting the same error.</p>
  <pre><code>info Running jetifier to migrate libraries to AndroidX. You can disable it using &quot;--no-jetifier&quot; flag.
  Jetifier found 967 file(s) to forward-jetify. Using 4 workers...
  info Starting JS server...
  /bin/sh: adb: command not found
  info Launching emulator...
  error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
  warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
  info Installing the app...
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
  
  * 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 https://help.gradle.org
  
  BUILD FAILED in 1s
  
  error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
  Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081```
  </code></pre>