I have a project with about 20 modules inside. Gradle clean takes about 5min. As ell if i add a new module gradle update projects needs more than 5min.
There are no dependencies to external libraries. Dependencies are only inside the project between several modules.
I had same Project without gradle and it worked fine. I did not convert the old project to gradle. I have created a new project with the file structure recomended by gradle. But with this performance this is not very usefull...
Any idea what's going wrong with gradle?
There may be many plugins in Android Studio that you are not using it. Disabling it will free up some space and reduce complex processes. To do so, Open Preferences >> Plugins and Disable the plugins you are not using.
According to developers.android.com, minimum requirement for android studio is: 4 GB RAM minimum, 8 GB RAM recommended. 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
Android Studio requires 8GB RAM or more for Windows, Mac, and Linux. Xcode as well requires 8GB or more of RAM for a smooth workflow. If you are using Xamarin and MS Visual Studio, 8GB of RAM is recommended. This means that the minimum amount of RAM you will need for mobile application development is 8GB.
Just create a file named gradle.properties in the following directory:
/home/<username>/.gradle/ (Linux)
/Users/<username>/.gradle/ (Mac)
C:Users<username>.gradle (Windows)
Add this line to the file:
org.gradle.daemon=true
Source: https://www.timroes.de/2013/09/12/speed-up-gradle/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With