Unable to connect with remote debugger

后端 未结 14 1322
予麋鹿
予麋鹿 2020-11-28 18:29

I\'m using React.JS and when I do react-native run-android (with my device plugged in) I see a blank page. When I shake the device and select Debug JS Rem

14条回答
  •  余生分开走
    2020-11-28 19:01

    The other answers here were missing one crucial step for me. In AndroidManifest.xml I needed to add usesCleartextTraffic:

        
    

    You probably don't want to keep this in the production release of your app though, unless you want to support insecure http requests.

    After I added this to my AndroidManifest.xml, then I followed Tom Aranda's answer, and the emulator was finally able to connect to the debugger.

提交回复
热议问题