4

I am developing Android applications with Android Studio 2.0. I read in a lot of blogposts that enabling the gradle daemon should increase the build performance drastically.

My problem is, that I do not know how to check if the daemon is running. I added the line

org.gradle.daemon=true

to the gradle.properties file but Android Studio shows me a unused property warning, so I am not sure if the daemon is actually running. How can I find out if the daemon is actually running?

azizbekian
  • 58,054
  • 12
  • 164
  • 238
Lukas Lechner
  • 7,191
  • 6
  • 37
  • 52
  • Maybe this helps: https://stackoverflow.com/questions/23265217/how-to-know-whether-you-are-running-inside-a-gradle-daemon – tomasulo Apr 22 '16 at 10:26
  • Possible duplicate of [Building and running app via Gradle and Android Studio is slower than via Eclipse](http://stackoverflow.com/questions/16775197/building-and-running-app-via-gradle-and-android-studio-is-slower-than-via-eclips) – Zeeshan Shabbir Apr 22 '16 at 10:26

2 Answers2

8

Long time passed since the question is asked, but I see no exact answer to the question:

How can I find out if the gradle daemon is running?

Running in terminal gradle --status will give the status of the gradle. You'll see "No Gradle daemons are running" message if there's no gradle daemon running.

No daemon

Otherwise, you'll see status of the daemon.

Daemon running

azizbekian
  • 58,054
  • 12
  • 164
  • 238
1

Android Studio (based on IntelliJ) always uses the Gradle Daemon internally. See about

You only need to enable the Daemon for builds you invoke on the command-line and here's how to do that:

echo "org.gradle.daemon=true" >> $PROJECT_DIR/gradle.properties
Manuel Jordan
  • 13,649
  • 17
  • 81
  • 128
Eric Wendelin
  • 41,234
  • 8
  • 61
  • 88