0

I am encountering this error:

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

I tried clean and rebuild, but that didn't work.

my project build.gradle is

buildscript {

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

  allprojects {
repositories {
    jcenter({url "http://jcenter.bintray.com/"})
    google()
    jcenter()
}
}

 task clean(type: Delete) {
   delete rootProject.buildDir
  }

my module.build is

android {
compileSdkVersion 26
defaultConfig {
    applicationId "com.example.pulkitkumar.shield"
    minSdkVersion 26
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation files('libs/iccc.jar')
implementation files('libs/knoxsdk.jar')
implementation files('libs/framework.jar')
implementation files('libs/sec_edm.jar')
implementation files('libs/KnoxReflection.jar')
}
SherylHohman
  • 16,580
  • 17
  • 88
  • 94
anonymous
  • 11
  • 3

0 Answers0