cocoscreator2.3.3 构建安卓工程报错同样的配置

cocoscreator 2.3.3构建安卓工程报错, 同样的配置2.2.0没有问题。
报错如下。

看下native.log的错误信息,或者直接使用android studio打开工程看下可以编译不

编译模式:release
使用 Android Studio 工程:D:\CreatorGame\wordstack\build\jsb-default\frameworks\runtime-src\proj.android-studio
正在生成 apk 文件…
正在执行:’“D:\CreatorGame\wordstack\build\jsb-default\frameworks\runtime-src\proj.android-studio\gradlew.bat” --parallel --info assembleRelease’

Initialized native services in: C:\Users\Administrator.gradle\native
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.10.3/userguide/gradle_daemon.html.
Starting process ‘Gradle build daemon’. Working directory: C:\Users\Administrator.gradle\daemon\4.10.3 Command: C:\Program Files (x86)\Java\jdk1.8.0_71\bin\java.exe -Xmx4096m -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\Administrator.gradle\wrapper\dists\gradle-4.10.3-all\47sla2vl0tc5qooe1dsb59pe1r\gradle-4.10.3\lib\gradle-launcher-4.10.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.10.3
Successfully started process ‘Gradle build daemon’
An attempt to start the daemon took 0.061 secs.

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/4.10.3/userguide/gradle_daemon.html
    Please read the following process output to find out more:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org
    执行命令出错,返回值:1。
    这是log信息 , 直接 android studio 我去试下

修改下这个内存配置

嗯嗯 感谢感谢