Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle execution fails: Unknown command-line option '--daemon'

I use latest Android Studio (0.8.2). On my other PC the same code is successfully builded.

It means that build scripts are correct.

So I assume that it is something with Gradle configuration, but I double rechecked all configs:

  • I completely removed .gradle folder under C:\Windows\Users{MyUser}.gradle to delete old configurations;
  • gradle.properties file doesn`t have any uncommented options

enter image description here

What do I miss?

NOTE! I have not specified '--daemon' option. Or I only think so:( I can`t find it in Gradle default and project specific settings

Also I created absolutely new project in the studio. It didn`t help - the same error(

like image 213
SILINIK Avatar asked Jul 16 '14 19:07

SILINIK


2 Answers

The answer is very simple. It seems that new version of Android studio imported all setting from previous one. Some of old options added additional options to compiler

Reason of the issue

like image 143
SILINIK Avatar answered Oct 16 '22 22:10

SILINIK


Android Studio always uses a Gradle daemon. It connects to the daemon via the Gradle Tooling API, and perhaps the latter doesn't understand --daemon (because it's redundant).

like image 20
Peter Niederwieser Avatar answered Oct 16 '22 20:10

Peter Niederwieser