What happened and how can I solve it? (react-native run-android)

-1

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.

BUILD FAILED

Total time: 2 days 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: link

    
asked by anonymous 16.08.2018 / 04:36

1 answer

1

The application is not recognizing any connected physical device or emulator running on your machine.

Remember that to test a physical device you need to enable USB debug mode through the "Developer Option" session in your Android device settings.

If you do not have a physical Android device, test through an emulator. Android-Studio introduces the AVD manager where you can create various android emulators.

    
02.09.2018 / 23:04