ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

compile error #136

Closed jjhesk closed 8 years ago

jjhesk commented 8 years ago

i found this error with this setup

apply plugin: 'com.android.library'
repositories {
    maven { url "http://dl.bintray.com/jjhesk/maven" }
    maven { url 'http://dl.bintray.com/madcyph3r/maven/' }
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
android {
    compileSdkVersion 23
    buildToolsVersion buildTools

    defaultConfig {
        minSdkVersion 17
        targetSdkVersion 23
        versionCode 11
        versionName "1.5.1"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
    }
}

dependencies {
    compile project(':URview')
    compile 'com.android.support:support-annotations:23.1.1'
    compile 'com.android.support:support-v13:23.1.1'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:percent:23.1.1'
    compile 'net.soulwolf.widget:ratiolayout:1.0.0'
    compile 'xyz.danoz:recyclerviewfastscroller:0.1.3'
    compile 'com.ogaclejapan.smarttablayout:utils-v4:1.6.0@aar'
    compile 'com.ogaclejapan.smarttablayout:utils-v13:1.6.0@aar'
    compile 'com.ogaclejapan.smarttablayout:library:1.6.0@aar'
    // compile 'com.marshalchen.ultimaterecyclerview:library:0.3.18'

    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.hkm.advancedtoolbar:advancedtoolbar:0.6.2'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.dmcapps:navigation-fragment:0.0.3'
}

Error:Execution failed for task ':HB2015N2:transformClassesWithJarMergingForNativehomeDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/ogaclejapan/smarttablayout/utils/BuildConfig.class

jjhesk commented 8 years ago

so i cannot compile both v13 and v4 together in the project..

ogaclejapan commented 8 years ago

Hi, @jjhesk I'm sorry late reply. I’ve been busy lately at work :P

Can not use both of the util-v4 and util-v13. You should not use both together. Fragment should use either one of v4 or v13.

Do you need both libraries in what case?