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币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!