"Ionic run android --device" fails after upgrade to CLI 1.5.5


#1

Recently I upgraded ionic CLI (1.5.5) and since then the build has failed in one of 2 ways

  1. “ionic run --device android” does not install any app on the connected device. Messages:

BUILD SUCCESSFUL

Total time: 4.255 secs
Built the following apk(s):
C:\Users\dinesh\vssod\hana\mobile-app-ionic\appname\platforms\android\build\outputs\apk\android-debug.apk
Using apk: C:\Users\dinesh\vssod\hana\mobile-app-ionic\appname\platforms\android\build\outputs\apk\android-debug.apk
Installing app on device…
Launching application…
LAUNCH SUCCESS

  1. “cordova build --release android”, then jarsigner, then zipalign - produces an .apk file which also fails to work.

I have restored older, working code from my VCS and tried these steps, but still no luck. I wonder what’s the issue. Will greatly appreciate your help.

Cordova CLI: 5.0.0
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.8.11
Ionic Version: 1.0.0
Ionic CLI Version: 1.5.5
Ionic App Lib Version: 0.2.2
OS: Windows 7 SP1
Node Version: v0.10.36

Thanks a lot.
Dinesh


#2

Also “ionic run android --target=” responds

BUILD SUCCESSFUL

Total time: 5.12 secs
Built the following apk(s):
C:\Users\dinesh\vssod\hana\mobile-app-ionic\opsveda\platforms\android\build\outputs\apk\android-debug.apk
Using apk: C:\Users\dinesh\vssod\hana\mobile-app-ionic\opsveda\platforms\android\build\outputs\apk\android-debug.apk
Installing app on device…
Launching application…
LAUNCH SUCCESS

But does not install the built app. When I check the app version on Application Manager, I still see an old version number.

Will appreciate any help.