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.

android release hangs forever at app:transformClassesAndResourcesWithR8ForRelease

See original GitHub issue

after upgrading my react-native app to version 0.60.5, the application works just fine in debugging mode but when i try to get the android release files of my app by running this command:

react-native run-android --variant=release

the progress gets stuck at this line:

> :app:transformClassesAndResourcesWithR8ForRelease

and hangs on forever

React Native version: 0.60.5

Steps To Reproduce

1.upgrade to react-native version 0.60.5 2.run 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 3.then run react-native run-android --variant=release

Describe what you expected to happen: i would like to extract release files (apks) of my application.

note: i tried to delete the build and gradle folders and run ./gradlew clean but didn’t work either

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:9

github_iconTop GitHub Comments

8reactions
marekpiechutcommented, Oct 4, 2019

Hi.

Try adding more memory to gradle: edit gradle.properties file and add

org.gradle.jvmargs=-Xmx4096m
1reaction
anasgit95commented, Sep 9, 2020

Hi.

Edit gradle.properties file and add org.gradle.jvmargs=-Xmx4096m then try this commande

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 After

cd android

gradlew clean

last

gradlew bundleRelease -x bundleReleaseJsAndAssets

i hope it helps 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native app release hangs forever at app ... - Stack Overflow
The command you want to use is a command to test APK , and you need to set it up to sign the...
Read more >
React Native Notes 10: Stuck at Old Version Code on Android ...
It just stucks at the old code. Android Solution. We simply need to re-bundle the assets on Android. Here's how to do that:...
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