![](/img/trans.png)
[英]React-Native build in Visual Studio Code unable to connect with remote debugger timeout while connecting to remote debugger in windows
[英]React-native Timeout when connecting to remote debugger in windows
我是React-Native和Android應用程序開發的新手。 當我嘗試在Android Emulator(Pixel 2手機)中運行遠程調試器時,我在模擬器中收到以下錯誤:
然后,即使我停止遠程調試,應用程序也不會在模擬器上運行(即沒有任何內容呈現在模擬器屏幕中)。 我需要再次運行該項目。
以下是自動生成的調試器URL: http : //10.0.2.2 : 8081 / debugb-
我該如何解決這個問題?
http://10.0.2.2:8081/debugger-ui這是Android VM的內部IP,瀏覽器使用localhost:8081/debugger-ui
參考https://github.com/facebook/react-native/issues/16674 #issuecomment-376774645
卸載你的應用程序,然后在終端運行=> react-native run-android
然后點擊chrome中的調試結束替換http://localhost:8081/debugger-ui/
,運行react-native run-android。 如果你還沒有成功再試一次
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.