(node: 53177) UnhandledPromiseRejectionWarning: Refusing a raw promise (reject ID: 2): TypeError: Unable to read property message 'undefined

Not sure what caused this problem. Yesterday it worked well. Today, when I tried to launch a jet android. I get this error. any ideas?

Starting JS server...
Running adb -s 3f71ece6 reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && ./gradlew installDebug)...
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.imtqy.com/react-native/docs/android-setup.html

(node:53177) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined
+4
source share
1 answer

I had a similar problem with trying to run a project created on Windows on Ubuntu. I found a solution that the file gradlewin was project/root/androidnot installed as executable. Therefore, simply adding chmod +x gradlewto solve this problem.

+2
source

Source: https://habr.com/ru/post/1665771/


All Articles