Ionic - Error generating the build

0

First I can create the plataforms / android folder with the command in the terminal: ionic cordova platform add android . But when I create build with apk with the command: ionic cordova build android . This error text appears:

BUILD FAILED in 9s
    at ChildProcess.whenDone (C:\projetos\myApp\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:3608) 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:3608) [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.
  • What do I do?
asked by anonymous 13.08.2018 / 09:16

0 answers