Gradle Duplicate Entry: java.util.zip.ZipException

前端 未结 1 1079
傲寒
傲寒 2020-11-29 06:46

I integrated the Zendesk mobile sdk through its maven repository into my project and it wouldn\'t build anymore. It has some kind of a clash with picasso library that i am u

相关标签:
1条回答
  • 2020-11-29 07:10

    When you added the com.android.support:multidex dependency you actually added some dependencies that collide with other dependencies.

    I solved it by:
    ---------------
    1. searching for the class, in you case the "RequestWeakReference.class" (in AndroidStudio just hit Ctrl+N on Windows or CMD-O on Mac)
    2. See which jar contains it - Android Studio will write it in the popup.
    3. Exclude it from all builds, for example:

    android {
         configurations{
            all*.exclude module: 'servlet-api'
        }
    }
    
    0 讨论(0)
提交回复
热议问题