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

后端 未结 9 1072
梦如初夏
梦如初夏 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:10

    Add Following plugins

    ionic cordova plugin add cordova-plugin-androidx
    ionic cordova plugin add cordova-plugin-androidx-adapter
    

    Add these two lines in platforms/android/gradle.properties file

    android.useAndroidX=true
    android.enableJetifier=true
    

    Here is a video as well: https://youtu.be/0RaJlGipYHc

提交回复
热议问题