使用Android Studio 1.1.0创建新项目后,运行报以下错:

Error: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 http://gradle.org/docs/1.10/userguide/gradle_daemon.html 
Please read below 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.

http://stackoverflow.com/questions/23663299/android-studio-gradle-project-sync-failed

解决方法:

1. 修改文件

Just a blind guess: try to add something like this to your gradle.properties file in the project:

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m

2. 修改软件设置

File -> Settings -> Compiler (Gradle-based Android Projects)

Change the "VM options" to -Xmx512m -XX:MaxPermSize=512m

最新文章

  1. C#浅析单例模式
  2. POJ 3294 Life Forms 后缀数组+二分 求至少k个字符串中包含的最长子串
  3. 2014 UESTC暑前集训动态规划专题解题报告
  4. util包下的Date与sql包下的Date之间的转换
  5. C语言使用cmd命令并获取输出方法
  6. 重构第8天:使用委托代替继承(Replace Inheritance with Delegation)
  7. docker kubernetes--
  8. C++STL库之set的用法
  9. 使用WebGL实现一个Viewer来显示STL文件
  10. git的安装已经连github
  11. js模块化开发——require.js学习总结
  12. [BZOJ2049] [SDOI2008] Cave 洞穴勘测 (LCT)
  13. 解码escape类型的unicode
  14. Mui中常见问题记录
  15. Mac上搭建rtmp流媒体服务器(结合FFmpeg的使用)
  16. 结队第二次作业——WordCount进阶需求
  17. 脚本病毒分析扫描专题1-VBA代码阅读扫盲、宏病毒分析
  18. dubbo_rpc原理
  19. 【Android】ListView、RecyclerView异步加载图片引起错位问题
  20. 使用websploit在局域网全自动渗透

热门文章

  1. showdoc升级问题,showdoc错误日志
  2. IDEA2019.2.2激活码,亲测可用
  3. Python中编码encode()与解码decode()
  4. Linux 网络时间同步
  5. 动态语言运行时(DLR)
  6. random_sample() takes at most 1 positional argument (2 given)
  7. 解决 Page 'http://localhost:63342/v3/js/math/math.map' requested without authorization页面未授权问题
  8. cpolar——安全的内网穿透工具
  9. Python——条件语句及其循环
  10. JZ-055-链表中环的入口结点