ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

ionic cap run android -l --external - Not showing target device - Capacitor CLI : 3.2.0

Open Shivamshah1401 opened this issue 4 years ago • 3 comments

I am not able to get targer device information even device is connected to the system and USB debugging is enable

Below is my Ionic info

Ionic:

Ionic CLI : 6.17.0 Ionic Framework : @ionic/angular 5.6.14 @angular-devkit/build-angular : 12.1.4 @angular-devkit/schematics : 12.1.4 @angular/cli : 12.1.4 @ionic/angular-toolkit : 4.0.0

Capacitor:

Capacitor CLI : 3.2.0 @capacitor/android : 3.2.0 @capacitor/core : 3.2.0 @capacitor/ios : not installed

Utility:

cordova-res : 0.15.3 native-run : 1.4.0

System:

NodeJS : v14.16.0 (C:\Program Files\nodejs\node.exe) npm : 6.14.11 OS : Windows 10

Shivamshah1401 avatar Sep 01 '21 06:09 Shivamshah1401

This works for me: ionic cap run android -l --host=0.0.0.0

Sampath-Lokuge avatar Sep 02 '21 12:09 Sampath-Lokuge

If I specify the host then my device shows up, else using -l --external, my device does not show up

tigohenryschultz avatar Oct 29 '21 18:10 tigohenryschultz

When I run the powershell/cmd without administrator then I see my device.

tigohenryschultz avatar Oct 29 '21 18:10 tigohenryschultz