본문 바로가기
IT

Android Studio - Unable to start the daemon process 오류

by CHML 2016. 2. 2.

Android Studio에는 Windows7 32bit 4G RAM 환경에서 Gradle Daemon 실행이 실패하는 이슈가 있다.

이러한 오류의 해결 방법은 virtual machine의 메모리 공간을 확보해주는 것이다.

아래는 Android Studio에서 Gradle Daemon 실행이 실패할 때 출력되는 오류 메시지 이다.


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

Could not create the Java virtual machine.



해결 방법

1. Android Studio의 File 메뉴에서 Settings를 클릭한다.



2. Settings의 Compiler 메뉴에서 VM Options의 값에 -Xmx512m를 입력한다. -Xmx512m에서 512m은 512MB를 의미하며, 적절한 값으로 설정한다.



3. Settings의 Gradle 메뉴에서 Gradle VM options의 값에 -Xmx512m를 입력한다.