gradlew assembleRelease not updating APK output file
See original GitHub issueI’m currently experiencing an issue with the build process of an android app using react native.
Running the command :
cd android && ./gradlew assembleRelease
is generating a new APK but the js bundle seems to be the same all the time. As a result none of app updates are being included in the build. On top of it, when running the app in the simulator using :
react-native run-android
updates the app ok in the simulator. Assuming it’s a cache issue, I ran the below each time before trying to generate a new APK :
rm -rf /android/build
rm -rf /android/app/build
rm -rf /android/.gradle
but still getting the exact same version of JS in the output APK.
Is the bundle cached somewhere? How can I solve the issue and update the code in my APK?
Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Running gradlew assembleRelease produces no output APK
Whenever I run gradlew assembleRelease either from a terminal or from within Android Studio, I see that the process ends successfully with ...
Read more >Build multiple APKs - Android Developers
One way to reduce the size of your APK is to create multiple APKs that contain files for specific screen densities or ABIs....
Read more >Generating Signed APK - Deco React Native Docs
gradle file in android/app #. Simply run the following in a terminal: $ cd android && ./gradlew assembleRelease. If you need to change ......
Read more >How to Generate a React Native Release Build APK for Android
You need to open your android\app\build.gradle file and add the keystore ... you will no longer be able to release updates for your...
Read more >Generate Release APK with ReactNative CLI (Errors Fixed)
How to generate android APK files for android mobile apps in React Native CLI ... I observe that it is recommended to use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s solved now by doing :
cd android && ./gradlew clean && ./gradlew assembleRelease
Anyone searching, what worked for me can be seen here