Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add library into my project because of java.util.zip.ZipException #17

Closed
TheCrafter opened this issue Nov 22, 2016 · 9 comments
Closed

Comments

@TheCrafter
Copy link

When I try to build the project I get this error

Execution failed for task ':app:transformClassesWithJarMergingForAppDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/view/WindowInsetsCompat.class

How can I solve this?

@ViHtarb
Copy link
Owner

ViHtarb commented Nov 23, 2016

@TheCrafter please show me your app build.gradle dependencies - i try to reproduce this issue

@TheCrafter
Copy link
Author

Yeah of course. There you go:

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
    compile 'com.flurry.android:analytics:6.3.1'
    compile 'de.greenrobot:greendao:2.1.0'
    compile 'joda-time:joda-time:2.9.3'
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.4'
    compile 'com.fasterxml.jackson.core:jackson-core:2.7.4'
    compile 'com.fasterxml.jackson.core:jackson-databind:2.7.4'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.android.volley:volley:1.0.0'
    compile 'com.github.tony19:logback-android-core:1.1.1-4'
    compile 'com.github.tony19:logback-android-classic:1.1.1-4'
    compile 'org.slf4j:slf4j-api:1.7.6'
    compile 'com.android.support:appcompat-v7:22.0.+'
    compile 'com.android.support:recyclerview-v7:22.0.+'
    compile 'com.android.support:cardview-v7:22.0.+'
    compile 'com.squareup.okhttp:okhttp:2.7.5'
    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    compile 'com.squareup:otto:1.3.8'
    compile 'io.reactivex:rxandroid:1.2.0'
    // Because RxAndroid releases are few and far between, it is recommended you also
    // explicitly depend on RxJava's latest version for bug fixes and new features.
    compile 'io.reactivex:rxjava:1.1.5'
    compile 'com.trello:rxlifecycle:0.6.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {
        transitive = true;
    }
    compile 'com.android.support:multidex:1.0.0'

    compile 'net.iharder:base64:2.3.8'

    compile 'com.fenchtose:tooltip:0.1.5'

    compile 'com.jakewharton:butterknife:8.4.0'
    apt 'com.jakewharton:butterknife-compiler:8.4.0'

    androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.4.1'

@germancampagno-zz
Copy link

I'm facing the same issue

@ViHtarb
Copy link
Owner

ViHtarb commented Dec 7, 2016

Sorry, but at the moment I'm very busy, as soon as I can, once'll

@ViHtarb
Copy link
Owner

ViHtarb commented Jan 17, 2017

@TheCrafter @germancampagno i trying to reproduce this issue but I never got to achieve the same result as you can you provide more info as Android Studio and gradle version?

@TheCrafter
Copy link
Author

They were both latest version at the time. I think neither gradle nor Android Studio have been updated since then. Maybe @germancampagno can provide more info

@damai007
Copy link

You can exclude the support-compat library on your build.gradle, like this:
compile ('com.github.vihtarb:tooltip:0.1.9') { exclude module: "support-compat" }

@ViHtarb
Copy link
Owner

ViHtarb commented Feb 14, 2017

@damai007 thank you i add this in Readme as a known issue with temporary solution

@ViHtarb
Copy link
Owner

ViHtarb commented Nov 6, 2019

After migration to androidx this issue must be solved

@ViHtarb ViHtarb closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants