Error:Unable to start the daemon process: could not reserve enough space for object heap.

Please assign more memory to Gradle in the project's gradle.properties file.

For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB:

<em>org.gradle.jvmargs=-Xmx1024m</em>

<a href="http://www.gradle.org/docs/current/userguide/build_environment.html">Read Gradle's configuration guide</a><br><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/vm/gc-ergonomics.html">Read about Java's heap size</a>

错误:无法启动守护进程:不能为对象堆预留足够的空间。

请在项目的分配更多的内存Gradle Gradle。属性文件。

例如,下面的线,在它。属性文件,将最大Java堆大小设置为1024 MB。

如果找不到gradle.properties 文件,则 在项目根目录下添加gradle.properties 文件

方法1:

Step 1 : Open gradle.properties file in your Android Studio project.

Step 2 : Add this line at the end of the file

org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m

Above methods seems to work but if in case it won't then do this (Method 2)

方法2

Step 1 : Start Android studio and close any open project (File > Close Project).

Step 2 : On Welcome window, Go to Configure > Settings.

Step 3 : Go to Build, Execution, Deployment > Compiler

Step 4 : Change Build process heap size (Mbytes) to 1024 and Additional build process to VM Options to -Xmx512m.

Step 5 : Close or Restart Android Studio.

更多相关文章

  1. Android布局文件.xml中的自定义属性
  2. Proguard手册(少量进行了中文翻译)
  3. apk在线升级
  4. Android(安卓)中的 AndroidManifest.xml文件
  5. android反射获取资源
  6. android文件管理器--界面效果二(layout)
  7. Android(安卓)WebService(基于SOAP协议)
  8. Android示例 JobService分析
  9. Android(安卓)String.xml Html格式化方法

随机推荐

  1. android animation中的参数interpolator
  2. LinearLayout && RelativeLayout 常用属
  3. Android安装步骤
  4. Android中打开新的Activity的三种方法
  5. 【Android】使用SharedPreferences判断应
  6. android键盘挡住界面
  7. 为什么 Android(安卓)手机总是越用越慢
  8. Android adb input 命令介绍
  9. Android Native Browser下载存储路径选择
  10. Cordova 3.x 源码分析(2) -- cordova.js概