Unable to load script from assets index.android.bundle on windows

后端 未结 30 3501
鱼传尺愫
鱼传尺愫 2020-11-22 06:33

I\'m trying to run my first React Native project for first time on my device (Android 4.2.2).

And I get:

unable to load script from assets in

30条回答
  •  终归单人心
    2020-11-22 07:14

    I have faced the same problem with a real android device.

    Solution: Based on this answer by Niltoid

    1. Find your local IP
    2. Open app and shake your Android device
    3. Go Dev Setting and>Debug Server...
    4. Paste your IP and port; X.X.X.X:8088" (where X's are your local IP)

    for Mac user: open your network preference, here you will get your local IP.

提交回复
热议问题