title: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
body: <p>MacBook-Air mlaapp % npx react-native run-android
  warn The following packages use deprecated "rnpm" config that will stop working from next release:
    - react-native-video: <a href="https://github.com/react-native-community/react-native-video#readme" rel="nofollow noreferrer">https://github.com/react-native-community/react-native-video#readme</a>
  Please notify their maintainers about it. You can find more details at <a href="https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide" rel="nofollow noreferrer">https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide</a>.
  info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
  Jetifier found 1232 file(s) to forward-jetify. Using 4 workers...
  info Starting JS server...
  info Installing the app...</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Could not initialize class org.codehaus.groovy.runtime.InvokerHelper</p></li>
  <li><p>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.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
  </ul>
  
  <p>BUILD FAILED in 1s</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</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Could not initialize class org.codehaus.groovy.runtime.InvokerHelper</p></li>
  <li><p>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.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
  </ul>
  
  <p>BUILD FAILED in 1s</p>
  
  <pre><code>at checkExecSyncError (child_process.js:631:11)
  at execFileSync (child_process.js:649:15)
  at runOnAllDevices (/Users/varmabiraju/projects/Joshi/MyProjects/mlaapp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
  at buildAndRun (/Users/varmabiraju/projects/Joshi/MyProjects/mlaapp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:179:41)
  at /Users/varmabiraju/projects/Joshi/MyProjects/mlaapp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:133:12
  at processTicksAndRejections (internal/process/task_queues.js:88:5)
  at async Command.handleAction (/Users/varmabraju/projects/Joshi/MyProjects/mlaapp/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:182:9)
  </code></pre>