vainu
vainu

Reputation: 141

Android Studio creating old version of application

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:

  1. Restarting Android Studio
  2. Restarting PC
  3. Restarting Device
  4. Sync Project
  5. Rebuild Project

Upvotes: 1

Views: 1280

Answers (3)

Ahmad Malik
Ahmad Malik

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

UnknownFrequency
UnknownFrequency

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

Yan Brito
Yan Brito

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

Related Questions