Live reload with wifi ADB not working

Hi,

I am trying to debug my app trough WiFi with adb. The regular build is working fine. But the live reload(ionic cordova run android -l) gives me following error:

[native-run] Error: Command failed: C:\Users###\AppData\Local\Android\Sdk\platform-tools\adb -s 192.###.###.###:5555 reverse tcp:8101 tcp:8101
[native-run] adb.exe: error: more than one device/emulator
[native-run]
[native-run] at ChildProcess.exithandler (child_process.js:294:12)
[native-run] at ChildProcess.emit (events.js:198:13)
[native-run] at maybeClose (internal/child_process.js:982:16)
[native-run] at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

Ionic info:

Ionic:

Ionic CLI : 6.8.0
Ionic Framework : @ionic/angular 5.1.0
@angular-devkit/build-angular : 0.901.5
@angular-devkit/schematics : 9.1.5
@angular/cli : 9.1.5
@ionic/angular-toolkit : 2.2.0

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.1.0, browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins)

Utility:

cordova-res (update available: 0.14.0) : 0.10.0
native-run (update available: 1.0.0) : 0.2.9

System:

Android SDK Tools : 26.1.1 (C:\Users#####\AppData\Local\Android\Sdk)
NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Whats wrong?

Found solution here: https://github.com/ionic-team/native-run/issues/28

ionic cordova run android --host=0.0.0.0 --public-host=<MY_DEVICE_IP> --port 8100 --livereload --no-native-run

I had the same issue and fixed

FOR ANDROID

Enabling TCP Mode

  1. Connect your device to your computer with USB to begin setup. Run adb devices to make sure the device is listed.

  2. Switch ADB from USB to TCP mode.

adb tcpip 5555

3.Establish a connection from your computer to the device by using the device’s IP on the shared LAN (device and computer need to be on the same Wi-Fi network). You can get the device’s IP by going to Settings → About phone → Network → IP address.

adb connect 192.168.0.xxx
  1. Unplug the phone and run adb devices to ensure the connection was established (the device will now be listed as an IP).

Run ionic app now

ionic cordova run android --address localhost --port 8100 --livereload 

This is Worked For me I hope It will help