mobilkod akademi
mobilkod akademi

Reputation: 11

React Native Update Release APK

I have create a release apk. Now I have changed the codes. I modified version number. When I generate release apk, it is not updated. it is same as old version. How can I do?

Upvotes: 0

Views: 2057

Answers (2)

mobilkod akademi
mobilkod akademi

Reputation: 11

I have found a solution.

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

Andrei Vedovato
Andrei Vedovato

Reputation: 171

Please try the solution provided below:

  1. Modify the code (it must be different);
  2. Make sure to update the app version code as other have pointed;
  3. Next step is to generate a signed APK.
  4. If successful, run this command so the CLI will bundle your code to production, generating the APK.
  5. At the end, the new Signed APK might be at "android/app/build/outputs/apk/release/" folder which is inside your project folder.

Upvotes: 1

Related Questions