I was working on an Ionic 3 project and debugging application live with connected Android devices by running following command
1 2 | $ ionic cordova run android --device |
Then suddenly it stopped working and showing following error in cmd
1 2 3 4 5 6 7 8 9 10 11 12 | > 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
1 2 | $ npm i ionic@4.9.0 |
That’s it everything worked fine after that
😛
Thanks for visiting :) Let me know if you have some suggestions or feedback for this post in the comment section. Looking for any tutorial or demo on FreakyJolly, just drop me a message here
Thanks 👍
Welcome CamouflagedMug 😊 glad it helped!
Thank you FreakyJolly. It solved my problem.