I am getting an error while building the Android app in Unity. “Gradle build failed. See the console for details.”
I am getting this error:
CommandWithNoStdoutInvokationFailure: Gradle initialization failed
UnityEditor.Android.Command.RunWithShellExecute.....(very long error message)....
FAILURE: Build failed with an exception.
* What went wrong:
Java heap space
* 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 am using latest Version of Unity 2019.1.4f1. I tried building a blank app. But it is not able to build.