没有 Applozic gradle 依赖,一切都很好。
在项目级别 build.gradle 我有:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
//classpath 'com.google.gms:google-services:3.0.0'
//classpath 'com.google.gms:google-services:1.5.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
在应用程序中,我的 build.gradle 是:
dependencies {
configurations {
all*.exclude group: 'xpp3', module: 'xpp3'
}
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-maps:9.0.2'
compile 'com.google.android.gms:play-services-location:9.0.2'
compile 'com.google.android.gms:play-services-plus:9.0.2'
compile 'com.google.android.gms:play-services-auth:9.0.2'
compile 'com.applozic.communication.uiwidget:mobicomkitui:4.3'
}
Gradle 同步正确。当我运行日志产生
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/google/android/gms/iid/zzb$zza$zza.class
如果我删除 applozic 线所有工作。
我发现了类似的问题,但不像我的