简体   繁体   English

如何解决Android Studio中的错误

[英]How to resolve error with Android Studio

I am using Windows 7 x32bit and Android Studio v0.8.6 and after installation I got some error with gradle . 我正在使用Windows 7 x32bit和Android Studio v0.8.6,安装后出现gradle错误。

             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.12/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.

Reducing android studio memory usage: https://code.google.com/p/android/issues/detail?id=82894#c3 减少android studio的内存使用量: https : //code.google.com/p/android/issues/detail?id=82894#c3

Edit studio.exe.vmoptions or studio64.exe.vmoptions in your android studio installation directory, and edit the Xms, Xmx, MaxPermSize options. 在android studio安装目录中编辑studio.exe.vmoptions或studio64.exe.vmoptions,然后编辑Xms,Xmx,MaxPermSize选项。

Reducing gradle memory usage: https://code.google.com/p/android/issues/detail?id=82894#c1 减少Gradle内存使用量: https//code.google.com/p/android/issues/detail? id = 82894#c1

set vmoptions for gradle in gradle.properties file. 在gradle.properties文件中为gradle设置vmoptions。 I set Xmx to 256m and MaxPermSize to 128m. 我将Xmx设置为256m,将MaxPermSize设置为128m。


However, this will probably slow down your android studio and/or gradle build process. 但是,这可能会减慢您的Android Studio和/或Gradle构建过程。 If you can do it, upgrade your memory to 8 GB AND upgrade your OS to 64-bit. 如果可以,请将内存升级到8 GB ,然后将操作系统升级到64位。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM