阮元浩,showroom,wanz-118
androidstudio使用过程中出现的异常
异常信息:
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.10/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. consult ide log for more details (help | show log)
刚开始使用androidstudio
在网上看的时候,一直以为是自己gradle.properties文件中
org.gradle.jvmargs=-xmx1024m -xx:maxpermsize=512m -xx:+heapdumponoutofmemoryerror -dfile.encoding=utf-8
-xmx1024m的值太小了,最后发现原来是由于我自己的电脑内存太小,只有2g,而windows系统差不多要占1g左右,所以得把
-xmx1024m的值改为-xmx512m才行
以上就是对androidstudio 错误资料整理,后续继续补充相关资料,谢谢大家对本站的支持!
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Android apk 项目一键打包并上传到蒲公英的实现方法
Android 自定义LineLayout实现满屏任意拖动功能的示例代码
android 限制某个操作每天只能操作指定的次数(示例代码详解)
Android 集成 google 登录并获取性别等隐私信息的实现代码
网友评论