重复文件复制android studio

时间:2016-08-14 21:43:40

标签: android android-studio admob

当我突然出现这个错误时,我一直试图将admob集成到我的项目中

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK jsr305_annotations/Jsr305_annotations.gwt.xml
    File1: C:\Users\SkyPunch\AndroidStudioProjects\GyanBox\app\build\intermediates\exploded-aar\com.longtailvideo.jwplayer\jwplayer-android-sdk\2.4.1+158\jars\classes.jar
    File2: C:\Users\SkyPunch\AndroidStudioProjects\GyanBox\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-basement\9.4.0\jars\classes.jar

我认为这是两个版本中相同类的问题

我用过这些

    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:support-v4:23.3.0'
    compile 'com.github.amlcurran.showcaseview:library:5.4.0'
    compile 'com.github.castorflex.verticalviewpager:library:19.0.1'
    compile 'com.github.curioustechizen.android-ago:library:1.3.0'
    compile 'com.nononsenseapps:filepicker:2.4.2'
    compile 'com.rockerhieu.emojicon:library:1.3.3'
    compile 'de.hdodenhof:circleimageview:2.0.0'
    compile 'org.apmem.tools:layouts:1.10@aar'
    compile 'com.android.support:cardview-v7:23.3.0'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile 'com.squareup.picasso:picasso:2.4.0'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'com.neovisionaries:nv-websocket-client:1.23'
    compile 'com.theartofdev.edmodo:android-image-cropper:1.2.6'
    compile 'com.longtailvideo.jwplayer:jwplayer-android-sdk:+'
    compile 'com.android.support:percent:23.3.0'
    compile 'com.google.firebase:firebase-core:9.4.0'
    compile 'com.google.firebase:firebase-ads:9.4.0'

如何在不删除任何库的情况下解决此问题

编辑:我发现通过以下方式可以解决

packagingOptions {
    exclude 'jsr305_annotations/Jsr305_annotations.gwt.xml'
}

这会对app产生任何影响吗?我不包括重要文件吗?

0 个答案:

没有答案