【问题标题】:Get error when running ionic live reload on wifi adb在 wifi adb 上运行 ionic live reload 时出错
【发布时间】:2020-05-17 10:24:39
【问题描述】:

我正在尝试通过 wifi adb 工作。所以我将我的设备与 wifi 连接起来,常规的 ionic 构建工作正常。

但是当我尝试使用实时重新加载进行构建时 -> ionic cordova run 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)

怎么了?

【问题讨论】:

    标签: ionic-framework adb wifi


    【解决方案1】:

    在这里找到解决方案:https://github.com/ionic-team/native-run/issues/28

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

    【讨论】:

      猜你喜欢
      • 2021-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-30
      • 2021-05-01
      • 1970-01-01
      相关资源
      最近更新 更多