

Changed my gradle.properties file (under Gradle scripts if you have the project file view under Android option OR inside your project folder).I did the following things and take note of the explanation under each - one may work for you: I had issues like this especially when debugging actively through my phone at times it took 27 minutes. In above scenario my mac machine have 8GB ram so i assigned 4gb for gradle It worked for me earlier it take almost 2-3 minutes now it is taking only 5-6 second # This option should only be used with decoupled projects. # When configured, Gradle will run in incubating parallel mode. =-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # Default value: -Xmx2048m -XX:MaxPermSize=512m # The setting is particularly useful for tweaking memory settings. # Specifies the JVM arguments used for the daemon process. # For more details on how to configure your build environment visit # Gradle settings configured through the IDE *will override* Go to your app > open your gradle.properties and change few lines from it Įlse you may copy paste my below snippet as well # Project-wide Gradle settings. 10:03:51 Gradle build finished in 4 min 0 secġ0:10:11 Gradle build finished in 3 min 29 secġ0:20:24 Gradle build finished in 3 min 42 secġ0:28:18 Gradle build finished in 3 min 40 secġ0:31:14 Gradle build finished in 2 min 56 secġ0:38:37 Gradle build finished in 3 min 30 secġ0:42:17 Gradle build finished in 3 min 40 secġ0:45:18 Gradle build finished in 3 min 1 secġ0:48:49 Gradle build finished in 3 min 30 secġ0:53:05 Gradle build finished in 3 min 22 secġ0:57:10 Gradle build finished in 3 min 19 secįound an easy and best way to build gradle My app is not that big in size as well (around 5MB) and it used to build within few seconds but not sure what has changed. I haven't any Anti virus running which could interrupt the builds.



Any ideas what could be causing the delays? My Android Studio project used to build faster but now it takes a long time to build.
