世博会网络响应超时,无法在Android模拟器上运行世博会应用程序
本教程将介绍世博会网络响应超时,无法在Android模拟器上运行世博会应用程序的处理方法,这篇教程是从别的地方看到的,然后加了一些国外程序员的疑问与解答,希望能对你有所帮助,好了,下面开始学习吧。
问题描述
我正在尝试运行我的原生反应应用程序,我在Android模拟器和我的手机华为Y3II上运行它,同样的事情也发生了。
几天前我工作得很好,但是突然这个错误不断出现:
Could not load exp://*myip*:19000 network response timed out
终端日志显示:
Fetching the user profile failed
connect ETIMEDOUT 104.197.216.164:443
aTrying to open the project on Android...
Opening on Android device
我尝试将环境变量REACT_NATIVE_PACKAGER_HOSTNAME设置为我的IP地址,
我试着关掉防火墙,
我确保这些端口在防火墙中是允许的,
我试着把我的网络从公共网络改成私人网络。
以下是我的Package.json文件:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "^35.0.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "file:../../../../Users/RiggedToBlow/Downloads/Compressed/react-native-sdk-35.0.0.tar.gz",
"react-native-gesture-handler": "~1.3.0",
"react-native-reanimated": "~1.2.0",
"react-native-web": "^0.11.7",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^1.9.4"
},
"devDependencies": {
"babel-preset-expo": "^7.0.0"
},
"private": true
}
我真的需要做这件事,请帮帮忙
推荐答案
只需转到WiFi设置
单击您的WiFi名称
并启用使此PC可被发现
祝你好运
好了关于世博会网络响应超时,无法在Android模拟器上运行世博会应用程序的教程就到这里就结束了,希望趣模板源码网找到的这篇技术文章能帮助到大家,更多技术教程可以在站内搜索。