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:
react-native init projectName
cd projectName
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:
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.