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

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

    For IOS:

    In a terminal:

    cd ios
    

    Remove the build folder with: rm -r build

    Run again: react-native run-ios

    Alternatively, you could open Finder, navigate to YOUR_PROJECT/ios and delete the build folder.

    Then run again: react-native run-ios

    For ANDROID:

    In a terminal:

    cd android/app
    

    Remove the build folder with: rm -r build

    Run again: react-native run-android

    Alternatively, you could open Finder, navigate to YOUR_PROJECT/android/app and delete the build folder.

    Then run again: react-native run-android

提交回复
热议问题