【问题标题】:Duplicate entry error when integrating appodeal集成 appodeal 时出现重复输入错误
【发布时间】:2017-01-14 11:02:21
【问题描述】:

错误:

错误:任务 ':app:transformClassesWithJarMergingForDebug' 执行失败。 com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:android/support/v7/widget/StaggeredGridLayoutManager$SavedState$1.class

依赖关系:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':cheetah-mobile-3.4.7')
    compile 'com.android.support:multidex:1.0.1'
    compile('com.android.support:appcompat-v7:24.0.0') {
        force = true;
    }
    compile('com.android.support:design:24.0.0') {
        force = true;
    }

    compile 'com.google.firebase:firebase-ads:9.4.0'
    compile 'com.google.android.gms:play-services-appindexing:9.4.0'
    compile 'com.android.support:support-v4:24.2.0'
    compile 'com.github.deano2390:MaterialShowcaseView:1.1.0'
    compile 'com.google.android.gms:play-services-ads:9.4.0'
    compile 'com.google.android.gms:play-services-location:9.4.0'

【问题讨论】:

    标签: android android-multidex


    【解决方案1】:

    您检查过您的 libs 文件夹吗?

    如果它包含回收视图,请将其删除并添加到build.gradle 所以

    compile 'com.android.support:recyclerview-v7:24.0.0'.
    

    【讨论】:

      猜你喜欢
      • 2017-06-16
      • 2014-12-06
      • 1970-01-01
      • 1970-01-01
      • 2013-12-09
      • 1970-01-01
      • 2019-01-06
      • 1970-01-01
      • 2019-11-25
      相关资源
      最近更新 更多