Could not get BatchBridge, make sure your bundle is packaged correctly

后端 未结 5 1608
北海茫月
北海茫月 2020-12-18 00:38

I am trying to run a react-native app I have created. I am getting the below screen when I run it initially in my phone.

I tried running the \"react-native

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-18 01:19

    If you are running Android 5.0+, please run the following in a command prompt to connect to the development server:

    adb reverse tcp:8081 tcp:8081
    

    Then, select 'Reload JS' from the Developer menu by shaking the device.

    If the above steps are not working or you are running a lower version of Android, please try the following to connect via Wi-Fi:

    1. Access the Developer menu, go to the 'Dev Settings'.
    2. Select 'Debug server host for device'.
    3. Type in your machine IP address and port e.g. 10.0.0.1:8081
    4. Try reload the app again by selecting 'Reload JS' from the Developer menu.

提交回复
热议问题