Error while merging dex Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

后端 未结 9 1068
梦如初夏
梦如初夏 2020-12-01 03:40

Error when merging the dex

following are the dependencies.

ext {
    anko_version=\'0.10.5\'
    support_lib=\'1.0.0-alpha1\'
    room_lib = \"1.1.0\         


        
9条回答
  •  臣服心动
    2020-12-01 04:01

    Check the package which clashes with the com.android.support and exclude it from that package. For me, I was using androidx packages and also FCM, where there was a clash. So, this fixed for me:

    implementation ('com.google.firebase:firebase-core:16.0.4') {
        exclude group: 'com.android.support'
    }
    

提交回复
热议问题