1. 程式人生 > >【ReactNative】真機上無法除錯 could not connect to development server

【ReactNative】真機上無法除錯 could not connect to development server

ReactNative 版本 0.27.2  真機除錯,一直紅屏,報錯

could not connect to development server


檢測流程:

1.工程目錄npm  start  OK

2.AppDelegate.m的localhost換成PC上的IP地址 192.168.0.103,且PC上的地址和手機上的同一區域網 OK

3.xcode提示

WebSocket connection failed with error Error Domain=NSPOSIXErrorDomain

表示連線超時,解決方法RCTWebSocketExecutor.m中的localhost換成PC地址,據說新版本不用換了

Connection to http://localhost:8081/debugger-proxy timed out. Are you running node proxy? If you are running on the device, check if you have the right IP address in RCTWebSocketExecutor.m.


 這個世界安靜了...

相關推薦

ReactNative機上無法除錯 could not connect to development server

ReactNative 版本 0.27.2  真機除錯,一直紅屏,報錯 could not connect to development server 檢測流程: 1.工程目錄npm  start  OK 2.AppDelegate.m的localhost換成PC上的

React Native Reload(雙擊R) 紅屏 Could not connect to development server

如圖所示,Reload 或者雙擊R後,出現大紅屏。 總結一下,問題主要出現在下面三個方向。 檢查一下,package是否正常執行。 看一下是否忘記啟動package,或者提供了錯誤的監聽埠。 看一下埠號是否和你的run-android命令的埠號一樣。 如果是這裡的問題,

unable to load script from assets 和could not connect to development server解決方案

小編碰到該問題是在利用Android studio正確執行react native專案時遇見,可以正確編譯,但是不能顯示出正確介面,如下圖所示。解決方案:1.設定IP和埠報錯頁面晃動手機,顯示選單——點

react-native之Could not connect to development server

Could not connect to development server是執行react-native到移動端一個經常出現的bug,很多情況下也是讓人很迷茫;但是本人經過一整天的摸索和測試,查詢了很多文件和其他人解決的一些小方法;總結如下: 首

React—Native開發之 Could not connect to development server(Android)解決方法

寫在最前面:    本來,我是有一篇部落格 RN開發之BUG 總結(持續更新) 來專門總結自己在React-Native開發中遇到的各種BUG 以及其解決辦法的。但是,由於 Could not conn

QtCretorQXcbConnection: Could not connect to display.

困擾了幾個月的問題解決啦 參考連結: 1、https://blog.csdn.net/u011728480/article/details/66974510?locationNum=9&fps=1 2、https://stackoverflow.com/questions/3

JAVAIntelij IDEA 使用筆記——Could not autowire. No beans of 'xxxx' type found的錯誤提示

待補充……   ——安裝SVN:     IDEA的SVN(Subversion)使用時,需要先【Add to VCS(可能是我新建class的時候沒有add to vcs)】再【Commit file(提交)】;     更新工程是【Update file】;   ——安裝tomcat 8;   

Android匯入第三方jar包Could not find class 異常解決

這幾天做一個通訊錄APP,在漢字排序的時候用到了開源專案pinyin4j,在java project中使用正常,無奈在android project中總是報異常 下面給出解決方法: 1、在工程目錄下新建一個externLib資料夾,將jar包拷貝到該資料夾 重新整理之後會

Android Studio 開啟除錯 時 提示:could not connect to remote progress Aborting debug session

    1. 在 AndroidMenifest.xml  新增: android:debuggable="true"  允許除錯。 <application android:debuggable="true" andr

部署CM報錯(7):hue無法訪問hbase報錯:HBase Thrift 1 server cannot be contacted: Could not connect to hadoop02:90

1.問題描述 cm安裝hue後,訪問hbase資料庫,報錯 HBase Thrift 1 server cannot be contacted: Could not connect to hadoop02:9090 2.問題原因 hbase的thrift server 1被關閉

部署CM報錯(1):Unable to issue query: could not connect to the Host Monitor,無法顯示charts

一、問題描述 點選clouldera manager無法顯示各個效能圖片,報錯 Unable to issue query: could not connect to the Host Monitor 二、原因: 沒有安裝 the Management service

流水啟動hdfs的報錯ssh: connect to host master port 22: Connection timed out

報錯如下: [[email protected] sbin]$ ./start-dfs.sh 18/01/24 22:46:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library fo

Could not connect to SMTP host: localhost, port: 25;

could string .net art smtp del family cal mode 1、錯誤描寫敘述DEBUG: setDebug: JavaMail version 1.3.3 DEBUG: getProvider() returning javax.mai

docker 踩坑筆記之 psql: could not connect to server

param ini thread mas nco nic etc user connect 最近在用docker跑rails,也遇到了一些坑,這裏記錄一下。 首先build項目: docker-compose build 然後就開始報錯了: psql: could not

could not connect to server: Connection refused (0x0000274D/10061)

accept tex href mar gpo play acl 圖片 nor Oracle Linux 6.8 PostgreSQL Server IP: 192.168.10.220 Windows 7 x64 pgAdmin Custom Port IP: 192.1

Xshell 鏈接 Could not connect to '192.168.80.129' (port 22): Connection failed

ip地址 開機 add 5.0 could not 自啟 -s 刪除 需要 在使用Xshell鏈接虛擬機VM裏面的Linux的時候、鏈接失敗,報 Could not connect to ‘192.168.80.129‘ (port 22): Connection fai

在 Linux redis 驗證交互連接過程中遇到 redis Could not connect to Redis at 127.0.0.1:6379: Connection refused 的解決方法

bind 服務器 技術分享 nbsp ade 解決 報錯 發現 bar Could not connect to Redis at 127.0.0.1:6379: Connection refused 1.找到redis.conf 並修改 daemonize no

psql could not connect to server

Question: psql connection refused psql -h 100.80.193.91 -U user -d database -p 5432 #Tips: psql: could not connect to server: connection refus

MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportExcep

hive在hive-site.xml中配置hive.metastore.uris屬性,後啟動異常 hive異常 [[email protected] hive-0.13.1-cdh5.3.6]$ bin/hive Logging initialized using configuration

invalid LOC header 與 Could not publish to the server. java.lang.IndexOutOfBoundsException 錯誤處理

1. 專案eclipse 部署問題 Could not publish to the server. java.lang.IndexOutOfBoundsException 原因: pom.xml 依賴的jar包有錯誤,maven 下載jar時,檔案為下載文章