【发布时间】:2016-04-29 12:05:30
【问题描述】:
我一直在努力解决一个问题,尝试了几个选项,但都无法解决。
仅在创建签名 apk 时出现问题:
错误:任务执行失败 ':app:transformClassesWithJarMergingForDebug'。 com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:com/applovin/adview/AdViewController.class
依赖结构:
dependencies {
compile 'com.android.support:multidex:1.0.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile project(':library')
compile 'com.google.android.gms:play-services:8.4.0'
//compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.pollfish:pollfish:+:googleplayRelease@aar'
}
注意:multiDexEnabled true 和 compile 'com.android.support:multidex:1.0.1' 是我需要添加的解决一个问题,所以我添加了它。
当我这样做时,CMD+O(Mac) 搜索AdViewController.class,我得到:http://prntscr.com/ay9uoy
解决问题的下一步应该是什么,应用程序在所有情况下都运行良好(在模拟器、设备中运行..),并且仅在生成签名 apk 时,我遇到了上述问题,这是我任务的最后一步,我被卡住了。
任何回复都会对我有好处。
【问题讨论】:
-
你用过
minifyEnabled true吗?
标签: android android-studio-2.0 android-multidex applovin