gpt4 book ai didi

react-native - (节点 :53177) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined

转载 作者:行者123 更新时间:2023-12-04 04:02:20 27 4
gpt4 key购买 nike

不知道是什么导致了这个问题。昨天它运行良好。今天,当我尝试运行 react-native run-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

最佳答案

我在尝试在 Ubuntu 上运行在 Windows 上创建的项目时遇到了类似的问题。我找到的解决方案是 gradlew文件在 project/root/android未设置为可执行文件。所以只需添加一个 chmod +x gradlew为我解决了这个问题。

关于react-native - (节点 :53177) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot read property 'message' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41469394/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com