React native 安卓机器上调试代码报错:网络请求出错TypeError: Network request failed

空尼Java
  • 0
新手上路,请多包涵

React native 安卓机器上调试代码报错:网络请求出错TypeError: Network request failed

安卓机器 usb连接调试

报错信息

TypeError: Network request failed
at XMLHttpRequest.xhr.onerror (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:24506:8)
at XMLHttpRequest.dispatchEvent (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:9996:15)
at XMLHttpRequest.setReadyState (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:26065:6)
at XMLHttpRequest.__didCompleteResponse (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:25913:6)
at http://localhost:8081/index.delta?platform=android&dev=true&minify=false:26007:52
at RCTDeviceEventEmitter.emit (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:9229:23)
at MessageQueue.__callFunction (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:7209:34)
at http://localhost:8081/index.delta?platform=android&dev=true&minify=false:7100:8
at guard (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:7046:1)
at MessageQueue.callFunctionReturnFlushedQueue (http://localhost:8081/index.delta?platform=android&dev=true&minify=false:7099:1)

哪位大神可以帮忙解决一下,做过加请求头,是连接usb连接调试

回复
阅读 1.3k
1 个回答
玩索
  • 1
新手上路,请多包涵

我也遇到同样的问题,求解?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏