I Am Getting A Error java.lang.OutOfMemoryError (no error message) While Generating A Signed Android App Bundle (AAB) Of My project. Here Is The Full Error Message-
***Execution failed for task ':app:signReleaseBundle'.
A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable java.lang.OutOfMemoryError (no error message)
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.***
I Tried Running It With --stacktrace And it Is Showing Different Error- Out of memory: Java heap space. Configure Gradle memory settings using '-Xmx' JVM option (e.g. '-Xmx2048m'.) Please fix the project's Gradle settings.
I Am Not Getting Any Error Message And Searched A Lot To Solve This Problem. Any Help Will Be Appreciated.