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

后端 未结 7 1566
轮回少年
轮回少年 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 15:58

    I've just met the same issue and fixed it by updating the version of lifecycle library:

    implementation 'android.arch.lifecycle:runtime:1.1.0'
    implementation 'android.arch.lifecycle:extensions:1.1.0'
    implementation 'android.arch.lifecycle:compiler:1.1.0'
    

    It seems that another library using in my project declare the version 1.1.0, but i was using 1.0.0.

提交回复
热议问题