Recently when I enabled Proguard in my program like the following:

1
2
3
4
5
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

I faced the problem that it tooks like for ever for the process of transformClassesAndResourcesWithProguardForRelease. This problem happens when you have multiple libraries need to be Proguard/Dexguard. Add the line multiDexEnabled true in to your gradle defaultConfig will fix this problem.