1

I am a new bee for Android Studio, while i import any android gradle(e.g. github.com/k9mail/k-9) project in studio, it shows a bulk of errors:

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:

Error: Could not find or load main class Xmx512m

i also changed the "Gradle VM option" under File>>Setting >>Gradle to "Xmx512m -XX:MaxPermSize=512m"

but not worked for me.

Also in the "VM option" under File >> Setting >> Compiler(Gradle-based Android Projects) i changed the VM option to Xmx512m -XX:MaxPermSize=512m, but not worked for me,

Please help me out.

Thanks in advance.

Sid
  • 481
  • 1
  • 4
  • 20
User413
  • 43
  • 1
  • 12
  • what project are you importing? Is it an android project with gradle? – Sid Dec 23 '14 at 07:42
  • yup! this project i am importing: https://github.com/k9mail/k-9 – User413 Dec 23 '14 at 07:44
  • Can you try deleting your gradle home directory(.gradle) directory and try to import again? http://stackoverflow.com/questions/20471311/android-studio-unable-to-start-the-daemon-process – Sid Dec 23 '14 at 07:57
  • i tried deleting the .gradle, and also i fixed the "Error:Unable to start the daemon process" error, now it shows, Error:(23, 0) Gradle DSL method not found: 'compile()' – User413 Dec 23 '14 at 08:18

0 Answers0