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连接调试
我也遇到同样的问题,求解?