Gradle Wrapper Error

I put the code,
task wrapper(type: Wrapper) {
gradleVersion = ‘2.0’ //version required
}
in my build.gradle, and when I run the command gradle wrapper in Git Bash it gives me this error:

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --statu s for details

FAILURE: Build failed with an exception.

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/ 5.0/userguide/gradle_daemon.html
    Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 1536000KB object heap

  • 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.

  • Get more help at https://help.gradle.org

Please help me fix this issue. Thanks