Open or create a file called gradle.properties in
.gradle directory. Inside the file, add following
org.gradle.parallel=true: Allow you to build multiple modules in the same project at the same time
org.gradle.daemon=truewill turn on daemon so that every time we build the application, it doesn’t need to rerun the entire Gradle application every time.
Memory Allocation tweaks
By default, Android Studio detects your installed RAM and configure the memory allocation automatically. However, the default value usually is too small to handle Android Studio. We can override it by opening it inside the Android Studio. Click Help > Edit Custom VM Options.