构建失败运行Ionic cordova构建android

时间:2018-05-29 10:33:11

标签: node.js android-studio gradle ionic3

使用Ionic 3和Android studio启动一个新项目,离子运行androisd命令运行,但每次我尝试构建时都收到以下错误消息,似乎是gradle错误:

BUILD FAILED in 1s
    at ChildProcess.whenDone (C:\Users\ecantero\Documents\Workspace\Ionic_project\charlotte\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:2192) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2192) [DEP0018] 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.|

如果有人可以提供帮助,我会在两天之后解决这个问题。提前谢谢

0 个答案:

没有答案