1
votes

I'm totally new in react-native and have an Android emulator running but it doesn't build react-native & shows this error... what should i do?

FAILURE: Build failed with an exception.

BUILD FAILED in 8m 56s 1 actionable task: 1 executed error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.

1
It was because of internet problem . I live in Iran and unfortunately google's limited Iranian:(M.Alish

1 Answers

3
votes

First of all you should update your node.js Then run the installation's cammands and for Iranian it's better to use shecan.ir before running build run-android command instead of unworking vpn. I did these steps and the problem solved.