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!

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

Leave a Comment