3

I got "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:" while trying to run my app on the device. Both "react-native run-android --stacktrace" and "react-native run-android --debug" yields "error: unknown option". Any ideas?

asked Oct 14, 2016 at 18:35
1

4 Answers 4

2

As for now,

react-native run-android --help

Have only

--install-debug

in available options. Looks like this error message is outdated:

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
answered Dec 27, 2016 at 12:22
Sign up to request clarification or add additional context in comments.

Comments

0

If you already have the app with same package name in the emulator/device, uninstall the app from device/emulator and try again.

answered Feb 1, 2017 at 8:58

Comments

0

You can use this

cd android
gradlew.bat --stacktrace
answered Feb 19, 2017 at 13:16

Comments

0

React Native --stacktrace for Android

While in the root directory of your /app:

> cd android
> ./gradlew --stacktrace

or

> cd android
> ./gradlew assembleDebug --info
answered Feb 21, 2018 at 23:28

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.