Android Studio 3.0 Execution failed for task: unable to merge dex

前端 未结 26 3525
野性不改
野性不改 2020-11-27 11:52

android studio was getting build error while build execution with following:

Error:Execution failed for task \':app:transformDexArchiveWithExternalLi

26条回答
  •  天涯浪人
    2020-11-27 12:08

    Go to your module level build.gradle file and add the following lines to the code

        defaultConfig {
            ...
            minSdkVersion 15 
            targetSdkVersion 28
            multiDexEnabled true
        }
        ...
    }
    
    dependencies {
      implementation 'com.android.support:multidex:1.0.3'
    }
    

    That solved the problem easily. Check this documentation

提交回复
热议问题