Android – get java.util.zip.zipexception: duplicate input exception
•
Android
I'm trying to use the design support library. Gradle dependencies are as follows
dependencies {
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'com.android.support:support-v4:23.2.1'
compile 'com.android.support:cardview-v7:23.2.1'
compile 'com.android.support:multidex:1.0.1'
}
But when I tried to run the application, the following error occurred
FAILURE: Build Failed with an exception.
>What's wrong:
But when I use compile 'com. Android. Support: Design: 23.0.1', I can get another runtime exception as follows
FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.support.v7.internal.widget.TintManager
Who can help solve this problem?
resolvent:
Finally, I got the answer. Its delivery dependency problem. I have a module dependency including recyclerview-v7
The design support library also contains the recyclerview-v7 dependency. Therefore, it gives java.util.zip.zipexception: duplicate: Android / support / V7 / recyclerview / buildconfig.class error
I excluded the recyclerview dependency from the design support library because-
compile ('com.android.support:design:23.2.0'){
exclude group:'com.android.support', module:'recyclerview-v7'
}
The problem is solved
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码