- Status:Resolved
- Affects Version/s:None
I have been getting push-back from the development team over our new Gradle-based build, as it is an order of magnitude slower to build and launch the application than it was using the old IDE-based build.
Gradle Stop All Daemon
I investigated using the Gradle daemon to improve the situation, and this initially looked promising, but I have run into a problem. When I run tasks like build, clean, distTar, etc, the daemon process continues running in the background, and subsequent tasks run much more quickly. And then stop the application via a control-c on the. Step 2: Enable Offline mode, Gradle daemon and parallel build for the project. Offline mode tells Gradle to ignore update-to-date checks. Gradle asks for dependencies everytime and having this option makes it just uses what is already on the machine for dependencies. Go to Gradle from android studio Setting and click in Offline work box.
I investigated using the Gradle daemon to improve the situation, and this initially looked promising, but I have run into a problem. When I run tasks like build, clean, distTar, etc, the daemon process continues running in the background, and subsequent tasks run much more quickly.
Gradle Stop Daemon Download
However, when I use the 'Run' task to launch the application, and then stop the application via a control-c on the command line, or the 'stop' function in the IDE (IntelliJ IDEA), then the daemon process is killed, and the subsequent task is again very slow to start. How can I ensure the daemon continues to run even when the run task is ended?
Gradle Stop Daemon Free
- Votes:
- 1Vote for this issue
- Watchers:
- 5Start watching this issue