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

后端 未结 30 3516
鱼传尺愫
鱼传尺愫 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:07

    Make sure that you have added /path/to/sdk/platform-tools to your path variable.

    When you run react-native run-android, it runs adb reverse tcp:< device-port > tcp:< local-port > command to forward the request from your device to the server running locally on your computer. You will see something like this if adb is not found.

    /bin/sh: 1: adb: not found
    Starting the app (.../platform-tools/adb shell am start -n 
    com.first_app/com.first_app.MainActivity...
    Starting: Intent { cmp=com.first_app/.MainActivity }
    

提交回复
热议问题