当前位置: 移动技术网 > IT编程>移动开发>Android > AndroidStudio 使用过程中出现的异常(Gradle sync failed)处理办法

AndroidStudio 使用过程中出现的异常(Gradle sync failed)处理办法

2019年07月24日  | 移动技术网IT编程  | 我要评论

阮元浩,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 错误资料整理,后续继续补充相关资料,谢谢大家对本站的支持!

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网