android DexArchiveMergerException: Unable to merge dex

后端 未结 2 1464
醉酒成梦
醉酒成梦 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.

提交回复
热议问题