Ng Sharma
Ng Sharma

Reputation: 2192

Emulator is not working: Execution failed for task ':app:installDebug'

First I'm a newbie in react-native. I start a React-native in Facebook official site react-native tutorial. When I follow the react-native android setup step by step, then I run this project When a show this message please Resolve this Error, and Suggest me. Please help me.

D:\Linux\IDE\All-Workspace\JavaScript-Workspace\React-Workshop\AwesomeProject>react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat install debug)...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
27 actionable tasks: 1 executed, 26 up-to-date
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.

Upvotes: 0

Views: 2420

Answers (1)

Jerome Hurley
Jerome Hurley

Reputation: 33

Emulator frozen in same state even after reboot etc..?

Follow Steps:

  • Open Android Studio
  • Open Configure
  • Open AVD Manager
  • There should be an emulator which is causing the issue - (if not create a new emulator an test build).
  • Go to down arrow in Actions and Select Stop
  • Same again in Actions but this time select Cold Boot Now

This works for me whenever ive had issues with an emulator.

Upvotes: 1

Related Questions