cordova打包问题,Execution failed for task ':processDebugResources'.

茗香墨语 发布于 05/30 11:19
阅读 323
收藏 0

运行cordova run android 或者cordova build android都会有下面的错误与,请问这个怎么解决呢?


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
  at ChildProcess.whenDone (D:\JettaTest\platforms\android\cordova\node_module
    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:28440) 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(). (rejectio
n id: 1)
(node:28440) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr
ecated. In the future, promise rejections that are not handled will terminate th
e Node.js process with a non-zero exit code.