在APK错误

时间:2016-04-15 06:03:02

标签: java android

首先,我研究了表格并发现了许多涉及此问题的主题。但是,我尝试了所有我发现的选项,似乎没有任何效果。这是错误:

错误:任务':app:transformResourcesWithMergeJavaResForDebug'的执行失败。

  

com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:在APK org / codehaus / jackson / impl / VERSION.txt中复制的重复文件

File1:C:\ Users \ Austin \ AndroidStudioProjects \ Intelwatch \ app \ libs \ jackson-core-asl-1.8.5.jar

File2:C:\ Users \ Austin \ AndroidStudioProjects \ Intelwatch \ app \ build \ intermediates \ explosion-aar \ com.esri.arcgis.android \ arcgis-android \ 10.2.7 \ jars \ libs \ jackson-core- 1.9.5.jar

app build.gradle:

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'

    defaultConfig {
        applicationId "com.f0xcr4f7.intelwatch"
        minSdkVersion 22
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions{
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LGPL2.1'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/VERSION'
        exclude 'META-INF/VERSION.txt'
        exclude 'META-INF/version.txt'
     }
    }

    dependencies {
    compile fileTree(include: ['*.jar', '.so'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.esri.arcgis.android:arcgis-android:10.2.7'
    compile files('libs/android-async-http-1.3.1.jar')
    compile files('libs/jackson-core-asl-1.8.5.jar')
    compile files('libs/jackson-mapper-asl-1.8.5.jar')
    compile files('libs/KumulosAndroid.0.2.3.jar')
    }

0 个答案:

没有答案