原来一直用公司64位电脑工作,今天把自己的笔记本也装了Android Studio,全部配置完成后,新建一个项目出来了
“ CreateProcess error=216, 该版本的 %1 与您运行的 Windows 版本不兼容。”
才突然发现原来自己的笔记本是32位的,估计很多新手可能会遇到这个问题,所以在此记录。
错误原因:
原来是AS自带的JDK为64位,系统是32位,所以版本不兼容。
解决方法:
安装32位JDk并修改AS配置。
32位JDK下载链接:http://pan.baidu.com/s/1eSaIkDG
File-->Other Settings-->Default Project Structure
修改配置:
修改后要是遇到以下错误:
"Gradle sync failed: 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/2.14.1/userguide/gradle_daemon.html Please read the following process output to find out more:"
那么调整JVM内存设置:
修改目录:Android\Android Studio\bin\studio.exe.vmoptions
-Xmx750m -> -Xmx512m -XX:MaxPermSize=350m -> -XX:MaxPermSize=250m
问题就可以解决了。