Duplicate entry error when integrating appodeal

混江龙づ霸主 提交于 2019-12-22 18:11:09

问题


error:

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v7/widget/StaggeredGridLayoutManager$SavedState$1.class

Dependencies:

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'

回答1:


Have you checked your libs folder?

If it contains recycle view , remove it and add to build.gradle so

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


来源:https://stackoverflow.com/questions/41649226/duplicate-entry-error-when-integrating-appodeal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!