我不明白这个错误:
错误:
任务 ':app:transformClassesWithJarMergingForRelease' 的执行失败。
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/print/PrintHelper$PrintHelperStubImpl.class
法典:
dependencies {
compile ('com.google.android.gms:play-services:+'){exclude module: 'support-v4'}
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/support-v4-19.0.1.jar')
compile ('com.android.support:multidex:1.0.1'){exclude module: 'support-v4'}
}
提前致谢
尝试删除compile files('libs/support-v4-19.0.1.jar')
行(可能{exclude module: 'support-v4'}
(。它可能是android/support/v4
库,在编译 android 项目时已经位于默认类路径中。