Gradle is taking too much time to build


#1

Hi, i’m new to android studio but when ever i make a change and run then gradle is taking too much time to build for start it almost takes 20min and then after each change (even only text change) it takes 4-5 minutes for each time when i click on run button.
My system info:
Intel Core i3 2330M, 2.20GHZ
Ram: 4GB
Android version: Latest

i know these specs are slow but i have seen many people using same android studio version on core 2 duo and core i3 4GB RAM. and their gradle is taking 2-3 minutes for the first time build and then less than 30 seconds for each build can you please tell me what is wrong with my android studio? or what kind of settings i can do to make it better?


#2

You should ask this question on gradle forum since it has nothing to do with kotlin. Maybe they have ready answer. Kotlin compiler is a bit slower than java, but not much. Of course you need to use latest version of gradle plugin and stdlib dependency.


#3

thank you i was un-aware of this so i posted it here i’ll post it on gradle forum.