title: react-native android error Failed to install the app native_modules.gradle' line: 170
body: <p>running react-native run-android in windows but get this error:</p>
  
  <blockquote>
    <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="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
    :ReactNative:Unexpected empty result of running 'npx --quiet --no-install react-native config' command from 'null' directory.
    :ReactNative:Running 'npx --quiet --no-install react-native config' command from 'null' directory failed.</p>
  </blockquote>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>Where:
  Script '/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 170</p></li>
  <li><p>What went wrong:
  A problem occurred evaluating script.</p>
  
  <blockquote>
    <p>Command <code>config</code> unrecognized. Make sure that you have run <code>npm install</code> and that you are inside a react-native project.</p>
  </blockquote></li>
  </ul>