Dex
Dex

Reputation: 398

Unable to build new project in Android Studio

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

Please read the following process output to find out more:

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.

Appreciate if anyone could throw light on this weird problem.

Upvotes: 0

Views: 786

Answers (1)

mongiabrothers
mongiabrothers

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

Related Questions