How to enable stacktrace react-native run-android command?
Try to build react-native-device-info
separately with ./gradlew assembleDebug
and make sure react-native-device-info
is all right. I have the same problems because of my network which is blocked and can not reach jcenter
.
By the way, --stacktrace
should be add as gradle
parameters, I doubt react-native
does not pass it to gradle
.
@EricHua23's answer is basically correct, except that instead of running ./gradlew assembleDebug --stacktrace
, you should run ./gradlew.bat installDebug --stacktrace
, as this is the command that's actually run by react-native run-android
. (and some of the errors you'd want to get the stack-trace for only occur in the installing/late-build portion, rather than the assembly portion)
Also, make sure you run it in the android folder. (so run cd android
in the console before running the gradlew command)