android release hangs forever at app:transformClassesAndResourcesWithR8ForRelease
See original GitHub issueafter 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:
- Created 4 years ago
- Reactions:12
- Comments:9

Top Related StackOverflow Question
Hi.
Try adding more memory to gradle: edit
gradle.propertiesfile and addHi.
Edit gradle.properties file and add
org.gradle.jvmargs=-Xmx4096mthen try this commandereact-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/resAftercd android
gradlew cleanlast
gradlew bundleRelease -x bundleReleaseJsAndAssetsi hope it helps 😃