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

前端 未结 26 3462
野性不改
野性不改 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:14

    Use multiDexEnabled true as below.

    {
     minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    

    and

    implementation 'com.android.support:multidex:1.0.3'
    

    this Solution worked for me.

提交回复
热议问题