Reputation: 398
I created a new project in Android Studio with the default activity settings. As soon as the project loads into the IDE it throws the below error message. Also I notice the layout folder with activity.xml is missing.
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/2.2.1/userguide/gradle_daemon.html
05:33:55.379 [main] DEBUG o.g.l.daemon.bootstrap.DaemonMain -
Assuming the daemon was started with following jvm opts:
[-XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m,
-Dfile.encoding=windows-1252, -Duser.country=IN, -Duser.language=en, -Duser.variant]
FAILURE: Build failed with an exception.
What went wrong: Could not create service of type DaemonContext using DaemonServices.createDaemonContext().
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Appreciate if anyone could throw light on this weird problem.
Upvotes: 0
Views: 786
Reputation: 375
try this
File->Invalid caches/Restart->Invalidate caches and restart once the Android studio restarts and reloads check and see if it works.
Upvotes: 3