node.js - 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>
解决方案
推荐阅读
- powershell - powershell就地删除文本文件中的双引号,其中行以双引号+一些其他文本开头
- python - 使用 Python 构建自定义 RandomSearchCV
- c++ - 如何正确实现具有原始指针的类的复制构造函数?
- c# - 处理从外部应用程序打开的文件以加载 WPF 应用程序?
- c# - EF Core 2.1 检查表中是否存在一对属性
- python - python;变量的地址,整数值是不可变的?
- c++ - 我想在 C++ 中使用 for 循环创建类对象
- prisma-graphql - 使用 Nexus 在多对多字段上创建 Prisma 2 Mutation
- javascript - 如果某些复选框被“选中”,则检查所有 javascript
- python - 使用 Numpy 对两个向量进行分组