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

后端 未结 7 1569
轮回少年
轮回少年 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
        }
    }
    
    0 讨论(0)
提交回复
热议问题