Reputation: 141
When am creating build using android studio getting old version of application all the time. For get rid out of this I deleted build folder and inside assets index.android.bundle, but still getting older version of build.
I also tried:
Upvotes: 1
Views: 1280
Reputation: 161
In the newer versions on react-native there is bundle android script first run that script then build your project
npm run bundle-android
it should build your project with updated code
Upvotes: 0
Reputation: 453
Try deleting the build folders (and release) rm -rf {root}/build && {root}/app/build|release/
Then clean: cd android && ./gradlew clean build
You can also use the flag --no-build-cache
to omit the build cache on next build
Upvotes: 0
Reputation: 43
Try uninstall app from device and pre-generate a new bundle before starts the android studio build
$ react-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/
Upvotes: 1