首页 > 解决方案 > Cordova 构建 android:failed ,怎么办

问题描述

我从 nodejs cli 中使用过这个

cordova build android

它给了我这个错误:-

(node:3352) 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:3352) [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.

我无法检测出什么问题我正在制作一个非常基本的 hello world 应用程序这是我的应用程序的代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>

</style>
<body>

    <h1>Hello World</h1>

</body>
</html>

标签: node.jscordova

解决方案


推荐阅读