Maryam Alishahi
Maryam Alishahi

Reputation: 452

react-native run-android doesn't build

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.

Upvotes: 1

Views: 3979

Answers (1)

Maryam Alishahi
Maryam Alishahi

Reputation: 452

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.

Upvotes: 3

Related Questions