简体   繁体   中英

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 .

             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

Edit studio.exe.vmoptions or studio64.exe.vmoptions in your android studio installation directory, and edit the Xms, Xmx, MaxPermSize options.

Reducing gradle memory usage: https://code.google.com/p/android/issues/detail?id=82894#c1

set vmoptions for gradle in gradle.properties file. I set Xmx to 256m and MaxPermSize to 128m.


However, this will probably slow down your android studio and/or gradle build process. If you can do it, upgrade your memory to 8 GB AND upgrade your OS to 64-bit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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