用proguard minifyEnabled构建apk真的花了这么多时间(> 12小时>

时间:2016-11-15 05:32:38

标签: android android-proguard

我想用proguard minifyEnabled进行发布版本,但这需要花费太多时间。构建仍然从昨天开始运行(差不多15个小时+)。

  

我添加了以下proguard规则:

-verbose

-optimizationpasses 3

-dontwarn com.androidquery.auth.**

-keep class com.androidquery.auth.**

-keep class com.google.android.exoplayer:exoplayer:r2.0.4

-keep class com.google.android.gms:play-services-gcm:9.6.1

-keep class com.google.android.gms:play-services-places:9.6.1

-keep class com.github.bumptech.glide:glide:3.5.2

-keep class com.squareup.picasso:picasso:2.+

-keep class com.yalantis:contextmenu:1.0.7

-keep class com.squareup:otto:1.3.8

-keep class com.nineoldandroids:library:2.4.0

-keep class com.squareup.retrofit2:converter-gson:2.1.0

-keep class com.squareup.retrofit2:retrofit:2.1.0

-keep class com.squareup.okhttp3:logging-interceptor:3.3.1

-keep class net.hockeyapp.android:HockeySDK:4.1.0-beta.2

-keep class com.android.support.**

-keep class com.squareup.okhttp:okhttp-urlconnection:2.2.0

-keep class com.squareup.okhttp:okhttp:2.2.0

-keep class com.squareup.picasso:picasso:2.4.0

请帮助,为什么需要这么多时间?

0 个答案:

没有答案