0
votes

I am building a react native app. Yesterday i have ran successfully cd android && ./gradlew bundleRelease. After that, I have tried to run react-native run-android but got this error: Unable to load script. Make sure you're either running a Metro (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.

How to make it work again normally in debug mode?

2

2 Answers

1
votes

I fixed by changing targetSdkVersion:28 to 26 in build.gradle file

0
votes

Maybe try to run npm start -- --reset-cache for the Metro Bundler and then in another terminal try to run react-native run-android