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
  • 259
  • 3
  • 17

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
  • 1,048
  • 1
  • 14
  • 32