android DexArchiveMergerException: Unable to merge dex

后端 未结 2 1463
醉酒成梦
醉酒成梦 2021-01-24 09:55

I have recently updated my android sdk version from 25 to 26. After updating the app, i\'m receiving this error:

Error:Execution failed         


        
相关标签:
2条回答
  • 2021-01-24 10:40
    Caused by: com.android.dex.DexException: Multiple dex files define  Lcom/squareup/picasso/Cache;
    

    Do not use JAR files when an artifact dependency is available.

    Replace:

    implementation files('libs/picasso-2.5.2.jar')
    

    with:

    implementation 'com.squareup.picasso:picasso:2.5.2'
    

    This should allow Gradle to only include one copy of the Picasso classes, whereas now you are trying to include two copies of those classes.

    0 讨论(0)
  • 2021-01-24 10:51

    Go to player settings > Project Settings > Minify, in there, there will be an option of Release and debug, set them to Gradle and try if does not work set them bith proguard and try, i am sure one solution will be fine.

    0 讨论(0)
提交回复
热议问题