android - :app:transformClassesAndResourcesWithProguardForRelease takes too long -


i have problem building release app proguard enabled. building stuck executing task :app:transformclassesandresourceswithproguardforrelease takes more 40 minutes!

dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     testcompile 'junit:junit:4.12'     compile('com.github.afollestad.material-dialogs:core:0.8.5.5@aar') {         transitive = true     }     apt 'com.jakewharton:butterknife-compiler:8.0.1'     compile 'com.android.support:appcompat-v7:24.2.0'     compile 'com.android.support:design:24.2.0'     compile 'com.android.support:support-v4:24.2.0'     compile 'com.android.support:percent:24.2.0'     compile 'com.android.support:recyclerview-v7:24.2.0'     compile 'com.android.support:cardview-v7:24.2.0'     compile 'com.google.android.gms:play-services-appindexing:9.4.0'     compile 'com.google.android.gms:play-services-analytics:9.4.0'     compile 'com.instabug.library:instabug:2.6.1'     compile 'net.hockeyapp.android:hockeysdk:4.1.0'     compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'     compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'     compile 'com.squareup.okhttp:logging-interceptor:2.6.0'     compile 'de.greenrobot:eventbus:2.4.0'     compile 'com.jakewharton:butterknife:8.0.1'     compile 'com.mobsandgeeks:android-saripaar:2.0.3'     compile 'uk.co.chrisjenx:calligraphy:2.1.0'     compile 'joda-time:joda-time:2.8.2'     compile 'com.github.bumptech.glide:glide:3.7.0'     compile 'info.hoang8f:android-segmented:1.0.6'     compile 'com.pnikosis:materialish-progress:1.7'     compile 'hanks.xyz:smallbang-library:0.1.2'     compile 'com.jzxiang.pickerview:timepickerdialog:1.0.1' } 

what can cause of mess?

thanks!

well have lot of libraries, despiste commentary above solved problem, there's tips work lot of libraries.

on app->build.gradle

defaultconfig {     ....     multidexenabled true   // add }  productflavors {     // define separate dev , prod product flavors.     dev {         // dev utilizes minsdkversion = 21 allow android gradle plugin         // pre-dex each module , produce apk can tested on         // android lollipop without time consuming dex merging processes.         minsdkversion 21     }     prod {         // actual minsdkversion application.         minsdkversion 17     } } 

hope helps


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -