I run ionic cordova run android for my Ionic Cordova project. At this time, I have my mobile connected to PC via USB. So when I run that command, it installs th
In my case it was something related to android platform config. I did following to resolve the issue:
android folder(in your project directory or under platforms directory.)npx cap add android
Above command is for ionic with Capacitor. You can use regular command if you are using cordova.