question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gradlew assembleRelease not updating APK output file

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

29reactions
nazywamsiepawelcommented, Apr 1, 2016

It’s solved now by doing :

cd android && ./gradlew clean && ./gradlew assembleRelease

5reactions
MattyK14commented, Aug 1, 2017

Anyone searching, what worked for me can be seen here

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found