Build Proguard For Release Takes Too Long
Recently when I enabled Proguard in my program like the following:
1 | release { |
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.