Gradle build error Error converting bytecode to dex:Cause: com.android.dex.DexException:Multiple dex files define Landroid/arch/lifecycle/liveData$1

后端 未结 7 1572
轮回少年
轮回少年 2021-01-24 15:23

From last 3 days I\'m getting this error and have tried all i could. Can anyone help me correct it. I\'m using Android 3.0 and my sdk and Google play services are updated as wel

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 16:05

    Do you have the latest multidex in your gradle dependencies ?

    'com.android.support:multidex:1.0.1'
    

    and add this

    android {
        dexOptions {
            preDexLibraries = false
        }
    }
    

提交回复
热议问题