user1406716
user1406716

Reputation: 9705

Error creating new Android project: Unable to start the daemon process

When I try to create a new project in Android Studio, I get the following error.

enter image description here

Update:

This is how my gradle-wrapper.properties (located at <project_folder>\gradle\wrapper) looks like:

#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
org.gradle.jvmargs=-XX\:MaxHeapSize\=1024m -Xmx1024m

Upvotes: 1

Views: 243

Answers (2)

Naveen Kumar M
Naveen Kumar M

Reputation: 7557

You need to increse the heap size and Change Build process heap size (Mbytes) to 1024 and Additional build process to VM Options to -Xmx512m.

Refer this solution

Upvotes: 2

Ciril
Ciril

Reputation: 420

Try tweaking memory options in gradle.properties file in your project.

Open the gradle.properties file and check these lines

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default notes: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

Upvotes: 1

Related Questions