Execution failed for task ':app:dexDebug' Android Studio

后端 未结 8 682
别那么骄傲
别那么骄傲 2021-01-11 17:37

The application was able to execute before updating my android studio,this is the error I am getting:

Error:Execution failed for task \':app:dexDebug\'.
>         


        
相关标签:
8条回答
  • 2021-01-11 18:06

    I fixed that adding:

    compile ('com.facebook.android:facebook-android-sdk:3.22.0@aar'){ exclude module: 'support-v4' }

    0 讨论(0)
  • 2021-01-11 18:06

    Try this :

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:23.1.1'
    }
    
    0 讨论(0)
  • 2021-01-11 18:14

    Remove google analytics V2 helps for me

    0 讨论(0)
  • 2021-01-11 18:17

    I got this error today out of nothing, after that i tried to update every single thing available, tried to change my gradle build as suggested here but none of it worked.

    After hours of dispair and AS updates, a simple "clean project" and "rebuild project" worked for me.

    0 讨论(0)
  • 2021-01-11 18:17

    Just rebuilding project fixes the issue (Build->Rebuild Project). You can also clean project

    0 讨论(0)
  • 2021-01-11 18:21

    If you have support-v4 and support-v7 (with different version) in build.gradle then add this line into your build.gradle at top.

    configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }

    Also read this

    0 讨论(0)
提交回复
热议问题