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

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

    Make sure metro builder is running to make your physical device and server sync

    First, run this command to run metro builder

    npm start

    Then you can start the build in react native

    react-native run-android

    Their should be no error this time. If you want your code to be live reload on change. Shake your device and then tap Enable Live Reload

提交回复
热议问题