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

前端 未结 26 3515
野性不改
野性不改 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 11:58

    For me, the problem was the use of Java 1.8 in a module, but not in the app module. I added this to the app build gradle and worked:

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

提交回复
热议问题