I was working on an Ionic 3 project and debugging application live with connected Android devices by running following command
$ ionic cordova run android --device
Then suddenly it stopped working and showing following error in cmd
> cordova run android --proxy --device --livereload-port 35729 --dev-logger-port
53703
Android Studio project detected
The platform "35729" does not appear to have been added to this project.
[ERROR] An error occurred while running subprocess cordova.
cordova run android --proxy --device --livereload-port 35729
--dev-logger-port 5... exited with exit code 1.
Re-running this command with the --verbose flag may provide more
information.
I also tried to reconnect device then disable/ enable device developer option, but nothing worked.
Then came to know that could be related to Ionic CLI update from 4.9.0 to 4.10.0 which I just upgraded a few minutes back
After that, I just downgraded my Ionic CLI version by running following cmd command
$ npm i ionic@4.9.0
That's it everything worked fine after that
😛
Leave a Reply