【发布时间】:2018-12-18 01:26:56
【问题描述】:
我正在尝试使用与 Cordova Safe 插件配合使用的 Ionic Native File Encryption 插件。
但是,在我添加插件并尝试使用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)
有什么问题?
【问题讨论】:
-
您使用的是哪个@ionic/app-scripts 版本?
-
@jeffchef 3.1.9
-
你的cordova版本怎么样?
-
@jeffchef "Cordova 平台:android 7.0.0,Ionic 框架:ionic-angular 3.9.2"
-
您是否安装了正确的支持7.0.0及以上的Android SDK版本?
标签: cordova ionic-framework ionic2 cordova-plugins ionic-native