2图书馆的冲突。 ProGuard错过了

时间:2016-09-08 07:36:42

标签: android proguard

在我的项目连接库Firebase分析师,Firebase崩溃,JwPlayer

Proguard-prop

   # Keep JWPlayer
-dontwarn com.longtailvideo.jwplayer.cast.*
-dontwarn com.longtailvideo.jwplayer.*

# Keep Picasso
-dontwarn com.squareup.okhttp.**

#GSON
-keepattributes Signature
-keepattributes *Annotation*
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.examples.android.model.** { *; }

#Firebase
-keep public class com.google.android.gms.**
-dontwarn com.google.android.gms.**

使用ProGuard编译时出错

Warning:com.google.ads.afma.nano.NanoAdshieldEvent$AdShieldEvent: can't find referenced field 'int zzbqb' in program class com.google.ads.afma.nano.NanoAdshieldEvent$AdShieldEvent
Warning:com.google.ads.afma.nano.NanoAfmaSignals$AFMASignals: can't find referenced field 'int zzbqb' in program class com.google.ads.afma.nano.NanoAfmaSignals$AFMASignals
Warning:com.google.ads.afma.nano.NanoAfmaSignals$AdSignalsContainer: can't find referenced field 'int zzbqb' in program class com.google.ads.afma.nano.NanoAfmaSignals$AdSignalsContainer
Warning:there were 3 unresolved references to program class members.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'.
> java.io.IOException: Please correct the above warnings first.

他想要什么?

Warning:Exception while processing task java.io.IOException: Can't write [C:\Users\Xaker\AndroidStudioProjects\AniMaunt\app\build\intermediates\transforms\proguard\debug\jars\3\1f\main.jar] (Can't read [C:\Users\Xaker\AndroidStudioProjects\AniMaunt\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\9.4.0\jars\classes.jar(;;;;;;**/*.class)] (Duplicate zip entry [com/google/android/gms/internal/nu.class == classes.jar:com/google/android/gms/internal/zzv$zzb.class]))

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'.
> java.io.IOException: Can't write [C:\Users\Xaker\AndroidStudioProjects\AniMaunt\app\build\intermediates\transforms\proguard\debug\jars\3\1f\main.jar] (Can't read [C:\Users\Xaker\AndroidStudioProjects\AniMaunt\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\9.4.0\jars\classes.jar(;;;;;;**/*.class)] (Duplicate zip entry [com/google/android/gms/internal/nu.class == classes.jar:com/google/android/gms/internal/zzv$zzb.class]))

0 个答案:

没有答案