So I’ve come to do some coding on my project today but when running ‘Ionic Cordova Run Android’ (the command that has previously worked fine onto my physical device) It gives the following output before throwing me back to the command line:
PS C:\Development\TripTrackr> ionic cordova run android [INFO] Running app-scripts build: --platform android --target cordova [17:33:36] build dev started ... [17:33:36] clean started ... [17:33:36] clean finished in 2 ms [17:33:36] copy started ... [17:33:36] transpile started ... [17:33:39] transpile finished in 2.40 s [17:33:39] preprocess started ... [17:33:39] deeplinks started ... [17:33:39] deeplinks finished in 30 ms [17:33:39] preprocess finished in 32 ms [17:33:39] webpack started ... [17:33:39] copy finished in 2.66 s PS C:\Development\TripTrackr>
I’ve looked all over and have tried various things, such as uninstalling and reinstalling ionic and cordova. Some suggestions have been to try the command without ionic ‘Cordova run android’, which does run but results in a plain white screen on the device (which might be right as it needs debugging, however adb logcat isn’t showing anything I’d expect error wise)
I’m running on windows 10, with a nexus 5 hooked up over usb. It can definately be seen by adb and has worked recently - I can’t think of any changes made though. I’m developing in VS Code but using the commandline for debugging as I found it works way better (apart from breakpoints)
Finally, I’ll post my ionic info below:
PS C:\Development\TripTrackr> ionic info cli packages: (C:\Users\jonba\AppData\Roaming\npm\node_modules) @ionic/cli-utils : 1.9.2 ionic (Ionic CLI) : 3.9.2 global packages: Cordova CLI : 7.0.1 local packages: @ionic/app-scripts : 2.1.3 Cordova Platforms : android 6.2.3 Ionic Framework : ionic-angular 3.6.0 System: Android SDK Tools : 26.0.2 Node : v6.11.1 npm : 5.3.0 OS : Windows 10 PS C:\Development\TripTrackr>
Really appreciate someones help with this. I’m already balding - this is only speeding up the process!
EDIT: Forgot to mention! Running ‘ionic serve’ produces identical behaviour.