Reduce compilation time for Android studio


#1

Building time was 1 min 20 sec for my project. and it was very slow
I added to gradle
productFlavors {
dev {
minSdkVersion 21
}
prod {
minSdkVersion MIN_SDK_VERSION
}
}
and now building time less then 30 sek