症状:
(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