react-native run-android isnt working [Ubuntu 20.04]

every time i start a new RN project and start to run the android emulator it shows this 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
Could not write standard input to Gradle build daemon.

I did everything and nothing seems to work!

2 thoughts on “react-native run-android isnt working [Ubuntu 20.04]”

  1. Android studio is installed and you have an emulator or device started ?
    Screenshoot of the error ?
    What gives the command : adb devices ?

    Reply

Leave a Comment