(узел:53177) UnhandledPromiseRejectionWarning: необработанное отклонение обещания (id отклонения: 2): TypeError: Невозможно прочитать свойство 'message' из неопределенного

Не уверен, что вызвало эту проблему.. Вчера все работало нормально. Сегодня, когда я попытался запустить реакцию-родной запустить-Android. Я получаю эту ошибку. есть идеи?

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.github.io/react-native/docs/android-setup.html

(node:53177) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined

1 ответ

У меня была похожая проблема при попытке запустить проект, созданный в Windows на Ubuntu. Решение, которое я нашел, состояло в том, что gradlew файл в project/root/android не был установлен как исполняемый. Так что просто добавив chmod +x gradlew решил эту проблему для меня.

Другие вопросы по тегам