我正在嘗試在使用android庫項目的android應用程序中使用Proguard。我用「火力cloude消息」 所以,我想補充Android Gradle Proguard錯誤:play-services
project gradle:
classpath 'com.google.gms:google-services:3.0.0'
app gradle:
compile 'com.google.firebase:firebase-messaging:9.4.0'
apply plugin: 'com.google.gms.google-services'
proguard:
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
然後我運行的應用程序。我收到此錯誤消息。
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'. java.io.IOException: Can't write [D:\WorkSpace\AndroidWorkSpace\SKP050\SKP050\app\build\intermediates\transforms\proguard\debug\jars\3\1f\main.jar] (Can't read [D:\WorkSpace\AndroidWorkSpace\SKP050\SKP050\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\9.4.0\jars\classes.jar(;;;;;;**/*.class)] (Duplicate zip entry [classes.jar:com/google/android/gms/common/internal/zzv$zza$zza.class]))
我不知道爲什麼我得到這個錯誤..