Gradle - high CPU usage

I recently started using Android Studio, and while I really like it, there is one thing that annoys me a lot:

Gradle is a good tool and that's it, but heck it is a resource like god and it is so painfully slow. Whether I'm using my 5 year old laptop or my gaming PC, when it's running, other apps go to a full stop (well, almost) ...

Is there a reason for the build tool to be so demanding? I understand compilation can be a slow process, but from my experience javac has always seemed incredibly fast, so it cannot be the source of the problem (also creating Android apps with ADT was many times faster) ..

So is there something wrong with my configuration? Can I make Gradle faster?

+3


source to share


1 answer


Create a file gradle.properties

either in the root of the project or in the ~ / .gradle directory with the following line:

org.gradle.daemon=true

      



Alternatively, you can go to File> Power Save Mode if you want to turn off continuous build in Android Studio.

+3


source







All Articles