Mac下编译在windows创建的项目TypeError: Cannot read property 'message' of undefined...解决方案

来源:互联网 发布:idea怎么关联源码 编辑:程序博客网 时间:2024/06/04 19:05

症状:

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

(node:15409) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

原因:

gradlew没有执行权限,权限为:-rw-r--r--

解决方案:

切换到Android目录,执行命令 chmod +x  gradlew

   再用ls -l 命令检查一下结果,发现gradlew前面的权限已经变成了-rwxr-xr-x


0 0