在 wifi adb 上 运行 ionic live reload 时出错
Get error when running ionic live reload on wifi adb
我正在尝试通过 wifi adb 工作。所以我将我的设备连接到 wifi,常规的离子构建工作正常。
但是当我尝试使用实时重载构建时 -> ionic cordova 运行 android -l
我收到错误:
[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)
怎么了?
在此处找到解决方案:https://github.com/ionic-team/native-run/issues/28
ionic cordova 运行 android --host=0.0.0.0 --public-host= --port 8100 --livereload --no-native-运行
我正在尝试通过 wifi adb 工作。所以我将我的设备连接到 wifi,常规的离子构建工作正常。
但是当我尝试使用实时重载构建时 -> ionic cordova 运行 android -l
我收到错误:
[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)
怎么了?
在此处找到解决方案:https://github.com/ionic-team/native-run/issues/28
ionic cordova 运行 android --host=0.0.0.0 --public-host= --port 8100 --livereload --no-native-运行