博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
AndroidStudio安装流程 以及 使用过程中出现的异常
阅读量:7200 次
发布时间:2019-06-29

本文共 1008 字,大约阅读时间需要 3 分钟。

 

 

 

异常信息:

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才行

 

转载于:https://www.cnblogs.com/lipeineng/p/5853374.html

你可能感兴趣的文章
写了几年代码了,苦苦追寻,应该沉淀下来了,好好研究。net底层框架,以及较好的分层框架...
查看>>
Linux压缩那些事儿
查看>>
【Web】前台传送JSON格式数据到后台Shell处理
查看>>
kthread_create与kernel_thread的区别【栈】
查看>>
Camera version support
查看>>
vs2013安装闪退及vs2010 vs2013打开时提示 未能完成的操作 及vs2013安装时出现图片后闪退...
查看>>
C# 连接mysql数据库
查看>>
Windows下Redis的安装使用
查看>>
On premise TFS Git OAuth clone failed on agent
查看>>
.C .h 和 .CCP的区别
查看>>
Django 实战 之 搭项目(正在更新)
查看>>
(转)流量加速插件 FinalSpeed介绍及一键安装教程
查看>>
springmvc上传图片并显示图片--支持多图片上传
查看>>
创业感悟:技术兄弟为什么一直没有起来(1)
查看>>
Easyui 基于kindeditor的扩展
查看>>
DJANGO基础学习之转义总结:escape,autoescape,safe,mark_safe
查看>>
hough变换检测直线和圆
查看>>
tcpdump学习
查看>>
spring mvc:内部资源视图解析器(注解实现)@Controller/@RequestMapping
查看>>
[转]关于setInterval只执行一次的原因
查看>>