Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Android Studio bug?

I get this when I try to start Android Studio:

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.

I previously changed one string of text like the video said to and my PC restarted since then so I opened the program for the second time ever and that was the message I got. It wont let me do anything while the error is there so any help would be appreciated!

1 Answer

Hi Marty,

I found the following info on stack overflow:

Android Studio Gradle project “Unable to start the daemon process /initialization of VM”

--> Starting Android Studio as Administrator fixed it.

and

Android Studio Gradle project sync failed

--> try to add something like this to your gradle.properties file in the project:

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m

If this doesn't help: you wrote "I previously changed one string of text like the video said to..." - which video are you referring to and which string did you change?

The random facts project, changed the "hello world" string which gave yellow warning errors which it said could be ignored. Will try those fixes you posted when I get to my PC though, thanks.

Okay I tried both of those suggestions with no luck! Any other ideas?