'Unable to load script. Make sure you're either running Metro

Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.SCREEN SHOT

I facing this while running a react native app in windows, using android studio, I have connected my real device for running that usb via android studio PLEASE HELP

PROJECT FILE



Solution 1:[1]

I followed these steps 1st step : yarn install 2nd step : npx react-native start

inside project folder

3rd step : yarn start

4th step : npx react-native run-android

also update gradles in android Studio

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DigitLake