Here is the simple solution :
- Delete build inside android/app folder
- Delete build inside android folder
- run
rm -rf $HOME/.gradle/caches/ - Open build.gradle –> android/app/build.gradle
- comment this line
//apply from: "../../node_modules/react-native/react.gradle"
-
Delete
index.android.bundlefile from assets folder and re-create usingreact-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res -
run
react-native run-androidOr
runreact-native run-android --variant=release
Happy Coding..