gpt4 book ai didi

cordova - ionic 文件加密

转载 作者:行者123 更新时间:2023-12-02 10:05:27 24 4
gpt4 key购买 nike

我正在尝试使用 Ionic native 文件加密插件,该插件与 Cordova Safe 插件配合使用。

但是,在我添加插件并尝试使用 ionic cordova run android 运行(即使没有在我的代码中使用它)之后,我收到此错误:

BUILD FAILED in 5s
at 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 cordova@7.1.0

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

关于cordova - ionic 文件加密,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51261178/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com