I am trying following https://www.techiediaries.com/ionic-cordova-sqlite-barcode-scanner-product-inventory-manager/. Seems like everything ran successfully until this command:
ionic run android -l.
I had to run it like this:
ionic cordova run
Here is the result:
cordova run android
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detected
(node:8156) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.
(node:8156) [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.
[06:34:32] lint finished in 2.27 s
[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?
My question is does “cordova run android” command really start the app on my Android device? also based on results of it why do I have an error? Am I missing some installation?
Thanks