Hi,
I just created new Ionic “blank” project. Installed one “qrscanner” plugin and aplication compiled successfully without errors.
I tried to deploy to andorid phone “ionic cordova run android --device”, and I get error:
…
BUILD SUCCESSFUL in 19s
46 actionable tasks: 1 executed, 45 up-to-date
Built the following apk(s):
D:\Practise\museum\qrcodes\platforms\android\app\build\outputs\apk\debug\app-debug.apk
ANDROID_HOME=C:\Users\PC_26\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161
none
Skipping build…
Built the following apk(s):
D:\Practise\museum\qrcodes\platforms\android\app\build\outputs\apk\debug\app-debug.apk
Using apk: D:\Practise\museum\qrcodes\platforms\android\app\build\outputs\apk\debug\app-debug.apk
Package name: io.ionic.starter
(node:5244) UnhandledPromiseRejectionWarning: Error: C:\adb\adb.exe: Command failed with exit code 4294967295
at ChildProcess.whenDone (D:\Practise\museum\qrcodes\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:5244) 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:5244) [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.
[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?
My package.json
…
“@ionic-native/core”: “~4.12.0”,
“@ionic-native/qr-scanner”: “^4.15.0”,
“@ionic-native/splash-screen”: “~4.12.0”,
“@ionic-native/status-bar”: “~4.12.0”,
“@ionic/storage”: “2.2.0”,
“cordova-android”: “7.0.0”,
“cordova-plugin-device”: “^2.0.2”,
“cordova-plugin-ionic-keyboard”: “^2.1.3”,
“cordova-plugin-ionic-webview”: “^2.2.0”,
“cordova-plugin-qrscanner”: “^2.6.0”,
“cordova-plugin-splashscreen”: “^5.0.2”,
“cordova-plugin-statusbar”: “^2.4.2”,
“cordova-plugin-whitelist”: “^1.3.3”,
“ionic-angular”: “3.9.2”,
“ionicons”: “3.0.0”,
…
Maybe some inconsistency in version of ionic, cordova, cli… I do not know what this error means ?