用creator打包apk报错

Initialized native services in: C:\Users\xiaoxin.gradle\native
Removing 0 daemon stop events from registry
Starting a Gradle Daemon (subsequent builds will be faster)
Starting process ‘Gradle build daemon’. Working directory: C:\Users\xiaoxin.gradle\daemon\4.1 Command: C:\Program Files (x86)\Java\jdk1.7.0_45\bin\java.exe -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xmx1024m -Dfile.encoding=GBK -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\xiaoxin.gradle\wrapper\dists\gradle-4.1-all\6aljcho5ti94cio10aoqa5qqs8\gradle-4.1\lib\gradle-launcher-4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.1
Successfully started process ‘Gradle build daemon’
An attempt to start the daemon took 0.106 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.1/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 object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

这个是java虚拟机的版本问题吗

问题已经找到,不用用jdk1.7,需要换成jdk1.8,如果是64位操作系统还需要换成jdk1.8 64x