cordova – 离子文件加密

cordova – 离子文件加密,第1张

概述我正在尝试使用与Cordova Safe插件配合使用的Ionic Native File Encryption插件. 但是,在我添加插件并尝试运行(即使不在我的代码中使用它)它使用离子cordova运行android,我得到此错误: BUILD FAILED in 5sat ChildProcess.whenDone (C:\Users\User\Ionic\App\platforms\andr 我正在尝试使用与Cordova Safe插件配合使用的Ionic Native file Encryption插件.

但是,在我添加插件并尝试运行(即使不在我的代码中使用它)它使用离子cordova运行android,我得到此错误:

BUILD Failed in 5sat ChildProcess.whenDone (C:\Users\User\Ionic\App\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:70968) 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)

问题是什么?

解决方法 我也尝试过安装CordovaSafe插件,但是我得到了和你一样的错误.

经过一段时间的尝试,我发现如果你将你的cordova降级到以前的版本,问题就可以解决了.

试试跑步

npm uninstall cordova

然后

npm install -g [email protected]

在降级您的cordova版本并再次使用CordovaSafe插件创建项目后,请告诉我它是否适合您.

总结

以上是内存溢出为你收集整理的cordova – 离子文件加密全部内容,希望文章能够帮你解决cordova – 离子文件加密所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1000628.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存