0

I am trying to generate android APK build, and I am getting different errors every time, from different libraries for example here it says > Task :react-native-fast-image:mergeReleaseResources FAILED enter image description here

after that I didn't do anything I just re-run ./gradlew clean && ./gradlew assembleRelease and it shows me different error

enter image description here

and I am in the loop since yesterday, any clue what's the problem or maybe solution?

Mohamed Ahmed
  • 192
  • 13

1 Answers1

1

This can be fixed by configuring the max heap size for your project.
Add this to your android/gradle.properties

org.gradle.jvmargs=-Xmx2560m

For more options prefer this.

Rohit Aggarwal
  • 781
  • 1
  • 9
  • 26