Questions tagged [gradle-daemon]

42 questions
75
votes
13 answers

To run dex in process, the Gradle daemon needs a larger heap. It currently has approximately 910 MB

I am getting this Gradle error every time I run my app. The error is: To run dex in process, the Gradle daemon needs a larger heap. It currently has approximately 910 MB. For faster builds, increase the maximum heap size for the Gradle daemon to…
74
votes
4 answers

Kill all Gradle Daemons Regardless Version?

Summary I would like to know how to kill every single gradle daemon and process running on a machine regardless of the version of gradle or the version of the daemon, but the "--kill" or "--stop" command will only stop those processes that match the…
Pytry
  • 6,044
  • 2
  • 37
  • 56
41
votes
4 answers

How to disable Gradle daemon in IntelliJ Idea?

I need to disable the Gradle daemon in IntelliJ Idea, because somehow Scala plugin is not working with the daemon (the compilation fails with NullPointerException). I have tried to edit my IntelliJ Gradle build configurations to include a JVM system…
Anatoliy Kmetyuk
  • 708
  • 1
  • 6
  • 10
32
votes
1 answer

High memory usage by gradle daemon

I am using Gradle 2.5 to compile a Java project which consists of 5 modules. In order to speed things up I also use the gradle-daemon. However, During compilation there are up to 18 instances of the gradle-daemon running. After compilation finishes…
user4918296
23
votes
1 answer

Jenkins Builds Fail Using the Gradle Daemon

While trying to improve performance of my Gradle Android builds, I stumbled across the Gradle Daemon, and have been using it with great success for local builds. However, when running under Jenkins on Ubuntu 14.04, builds are intermittently failing…
21
votes
2 answers

"Starting a new Gradle Daemon for this build (subsequent builds will be faster)"... every time

I use Gradle 2.10 on Ubuntu 16.04.1 LTS I was getting told "This build could be faster, please consider using the Gradle Daemon" so I created a ~/.gradle/gradle.properties file containing org.gradle.daemon=true. Result: Every time I run ./gradlew…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
18
votes
3 answers

Gradle --no-daemon starts the daemon?

How to I keep gradle from ever talking to the daemon? ./gradlew --no-daemon -Porg.gradle.daemon=false -Dorg.gradle.daemon=false build -x test Starting daemon IDLE We run jenkins nodes on ecs so the daemon doesn't seem to buy us much. In addition,…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
16
votes
2 answers

How to use/start the gradle daemon on a Mac?

Every time I execute a gradle command on Mac I get a message saying: "This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html" I've created a gradle.properties file with the…
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
10
votes
7 answers

I don't have a proxy, but Gradle says "Connect to 127.0.0.1:8888 [/127.0.0.1] failed", even after removing ~/.gradle

My gradle seems to insist on downloading packages from what looks like a proxy address. With this command I stop all Gradle daemons, remove any Gradle configuration, and build a random project from GitHub that has no proxy settings in its…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
10
votes
2 answers

How to force Intellij IDEA to use only one gradle daemon?

I know it may look like a duplicate of How to disable Gradle daemon in IntelliJ Idea?, but I don't want to completely disable gradle daemon. I just want to use only one daemon, not many of them. The problem I have is that to successfully run some…
barteks2x
  • 1,275
  • 12
  • 24
9
votes
3 answers

How to know whether you are running inside a gradle daemon

We have a situation where we take up a Jetty instance inside the VM that runs gradle. However, this fails pretty badly when we are running inside a gradle daemon: We don't get rid of the Jetty instance totally, so it have to die with the gradle…
stolsvik
  • 5,253
  • 7
  • 43
  • 52
9
votes
3 answers

Extending the Gradle Daemon idle timeout

I'm using gradle and intellij to build my android project. I've noticed that after one minute the daemon process shut down and I can see in the daemon-11188.out.log that the idle timeout is set to 60000 (idleTimeout=60000). Here is the line from the…
Rotem
  • 2,306
  • 3
  • 26
  • 44
8
votes
6 answers

Create New Project Android Studio 0.2.3 - Unable to start Gradle daemon process

I'm having serious problems with Android Studio. I have totally uninstalled Android Studio, and any copies of Eclipse on my PC. I then deleted the .gradle .android folders in the users folder. I then Re-installed the latest release on my PC. The…
Adrian Wreyford
  • 658
  • 3
  • 10
  • 20
7
votes
2 answers

Reduce gradle daemon disk space (it takes up to 50GB)

I'm developing in Android Studio with gradle. My .gradle/daemon/ takes up to 50GB of space. It consist of about 50 files between 1MB and 3GB in size. How can I reduce size of that folder? How to clean it up safely?
Marian Paździoch
  • 8,813
  • 10
  • 58
  • 103
7
votes
4 answers

android studio Error:Unable to start the daemon process

Version of Android Studio 2.2 OS version: Windows 10 Java JRE/JDK version: 1.8.0_51 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…
david-za
  • 71
  • 1
  • 1
  • 3
1
2 3