2 woyaoxianzaixiazai woyaoxianzaixiazai 于 2017.01.17 14:29 提问

transformClassesWithJarMergingForDebug
app

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/Size.class

2个回答

woyaoxianzaixiazai
woyaoxianzaixiazai   2017.01.17 15:23

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
// compile 'com.android.support:support-v4:23.0.1'
// compile 'com.android.support:appcompat-v7:23.0.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:25.0.0'
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
compile project(':PushSDK')
compile project(':meiqiaSdk')
}

由于依赖里添加了v包,所以,把libs里的v4.jar删掉

woyaoxianzaixiazai
woyaoxianzaixiazai   2017.01.17 16:21
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
android app:transformClassesWithJarMergingForDebug 错误解决Android引入jar包重复
今天在开发过程中遇到这样一个错误,贴一下错误Log: com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/multidex/BinderTheead$V4.clas  在用Android Studio做开发的时候难
Android Studio出现 app:transformClassesWithJarMergingForDebug的解决办法
最近做实习生,老板让去另外一个组去做android的项目,用GenyMotion第三方模拟器进行模拟,apk的安装运行没有任何问题, 当我把真机连到电脑就出现了 app:transformClassesWithJarMergingForDebug 在这个时候往往提示缺某个jar包,比如ezmorph.jar  当我把这个jar包倒入AndroidStudio 又回出现缺jso
记一次编译不过得BUG app:transformClassesWithJarMergingForXXXDexDebug
* What went wrong:Execution failed for task ':app:transformClassesWithJarMergingForXXXDexDebug'.> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: or...
Execution failed for task ':transformClassesWithJarMergingForDebug'. > com.android.build.api.transfo
在build.gradle中配置 configurations { all*.exclude group: 'com.android.support', module: 'support-v4' all*.exclude group: 'com.android.support', module: 'support-annotations' }
android app:transformClassesWithJarMergingForDebug 错误解决
最近在写商城项目。 1.18 版本 通过率 100% 。 这两天又新加一个秒杀的功能, 通过率只有60% 错误日志: at com.zhy.autolayout.utils.AutoLayoutHelper.getAutoLayoutInfo(AutoLayoutHelper.java:144)at com.zhy.autolayout.AutoLinearLayout$
Error:Execution failed for task ':transformClassesWithJarMergingForDebug'. > com.android.build.api.t
Error:Execution failed for task ':transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/squareup/leakcanary
解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'问题
在开发的时候,经常遇到 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: andr
Android Studio中如何解决重复依赖导致的app:transformClassesWithJarMergingForDebug
当使用maven导入依赖时,可能会出现不同的依赖包含了同一个jar,在编译期间不会报错。可一旦run app的时候,就会报Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.ut
transformClassesWithJarMergingForDebug错误原因以及解决方法
一、错误信息: Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: base64decode
app:transformClassesWithJarMergingForRelease
app:transformClassesWithJarMergingForRelease