Skip to content

Execution failed for task ':app:mergeExtDexDebug'. #452

Closed
@ibrahimbroachwala

Description

@ibrahimbroachwala

Getting this error while building.

Execution failed for task ':app:mergeExtDexDebug'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'iconics-core.aar (com.mikepenz:iconics-core:3.2.5)' to match attributes {artifactType=android-dex, dexing-is-debuggable=true, dexing-min-sdk=21}
> Execution failed for DexingTransform: /Users/apple/.gradle/caches/transforms-2/files-2.1/d5a9e46b08fc3a87a4eb4c070e854658/jars/classes.jar.
> Error while dexing.

Activity

ibrahimbroachwala

ibrahimbroachwala commented on May 9, 2019

@ibrahimbroachwala
Author

Some more error info:

AGPBI: {"kind":"error","text":"Default interface methods are only supported starting with Android N (--min-api 24): void com.mikepenz.iconics.animation.IconicsAnimationListener.onAnimationCancel(com.mikepenz.iconics.animation.IconicsAnimationProcessor)","sources":[{}],"tool":"D8"}

mikepenz

mikepenz commented on May 10, 2019

@mikepenz
Owner
self-assigned this
on May 10, 2019
ibrahimbroachwala

ibrahimbroachwala commented on May 13, 2019

@ibrahimbroachwala
Author

Thanks a lot. It worked :D

gauravsngarg

gauravsngarg commented on Jun 24, 2019

@gauravsngarg

android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

chrisoemma

chrisoemma commented on Jun 3, 2020

@chrisoemma

Hi I solved the same issue by setting multiDexEnabled true in /android/app/build.gradle

like:

android {
compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
    applicationId "xxxxx"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
    multiDexEnabled true //add this line
}

}

itzpradip

itzpradip commented on Jun 3, 2020

@itzpradip

@chrisoemma Thanks bro, you're a true life savior.

Shalabyer

Shalabyer commented on Jun 25, 2020

@Shalabyer

@chrisoemma Thanks man, it did work .

Ramanpreet6532

Ramanpreet6532 commented on Jul 2, 2020

@Ramanpreet6532

@chrisoemma i tried above solution but it doesn't work... is there any alternative for this

Bruno-hub19

Bruno-hub19 commented on Jul 9, 2020

@Bruno-hub19

@chrisoemma Thanks bro, success.

magic990619

magic990619 commented on Jul 9, 2020

@magic990619

Success.

ghost

ghost commented on Aug 8, 2020

@ghost

great

pgThiago

pgThiago commented on Aug 19, 2020

@pgThiago

Hi I solved the same issue by setting multiDexEnabled true in /android/app/build.gradle

like:

android {
compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
    applicationId "xxxxx"
    minSdkVersion rootProject.ext.minSdkVersion
    targetSdkVersion rootProject.ext.targetSdkVersion
    versionCode 1
    versionName "1.0"
    multiDexEnabled true //add this line
}

}

why it fixed the problem? anyone knows?

14 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @mikepenz@gauravsngarg@itzpradip@AlessioCamm@ibrahimbroachwala

      Issue actions

        Execution failed for task ':app:mergeExtDexDebug'. · Issue #452 · mikepenz/Android-Iconics