Facing issue " Failed to install the app. Make sure you have the Android development environment " in react native

praful argiddi picture praful argiddi · Jul 4, 2019 · Viewed 79k times · Source

Would you please help me, I am stuck to create a new project in react-native Like below screenshot. I have able to run old projects. but I am not able to run a new project

I have followed these steps:

  1. react-native init projectName
  2. cd projectName
  3. react-native run-projectName

But I get the error below:

error Failed to install the app. Make sure you have the Android development environment set up:

Screenshot

Answer

A. Nadjar picture A. Nadjar · Aug 31, 2019

To make sure your environment is setup properly for android, go to the root of your react-native project. Open the android project(folder) in the Android Studio IDE.

All errors with your environment will show up, and that will automatically start the Gradle Daemon to sync and configure the build for you. Once it finished, close the Android Studio and come back to command-line and run: react-native run-android

This works fine.