Ramotion / fluid-slider-android

:octocat:💧 A slider widget with a popup bubble displaying the precise value selected. Android library made by @Ramotion
https://www.ramotion.com/agency/app-development/
MIT License
1.42k stars 148 forks source link

duplicate value for resource 'attr/size' with config ''. #33

Closed azze-r closed 5 years ago

azze-r commented 5 years ago

got this error when compile :

Android resource compilation failed C:\Users\Azedine\Documents\dev\android.bestasset\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2943: error: duplicate value for resource 'attr/size' with config ''. C:\Users\Azedine\Documents\dev\android.bestasset\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2943: error: resource previously defined here.

here is my gradle file :

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'

android {
    signingConfigs {
        config {
            storeFile file('keystore/keyStoreBestAsset.jks')
            keyAlias 'release'
            keyPassword 'release'
            storePassword 'bestasset0'
        }
    }

    compileSdkVersion 27
    defaultConfig {
        applicationId "com.nouvonivo.bestassetAlpha"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode xxxx
        versionName "xxxx"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.config
        }
        debug {
            applicationIdSuffix ".debug"
            debuggable true
            minifyEnabled false
        }
    }
    buildToolsVersion '28.0.3'
}

dependencies {
    //Test
    testImplementation 'junit:junit:4.12'
    testImplementation 'org.mockito:mockito-core:2.23.4'
    androidTestImplementation 'org.mockito:mockito-android:2.23.4'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    // Framework
    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.google.android.gms:play-services-maps:16.0.0'

    // Multidex
    implementation 'com.android.support:multidex:1.0.3'

    // Play services
    implementation 'com.google.android.gms:play-services-location:16.0.0'

    // UI
    api 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.4-7'
    implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.android.support:percent:27.1.1'
    implementation 'me.grantland:autofittextview:0.2.1'
    implementation 'com.sangcomz:FishBun:0.8.6'
    implementation 'com.github.kapilmhr:AlphabetIndexFastScrollRecyclerview:1.0.0'
    implementation 'com.chaos.view:pinview:1.4.2'
    implementation 'com.android.support:support-emoji:27.1.1'
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.diegocarloslima:fgelv:0.1.2@aar'
    implementation 'com.github.devlight:infinitecycleviewpager:1.0.2'

    // Social networks
    implementation 'com.facebook.android:facebook-login:4.39.0'
    implementation 'com.github.jd-alexander:LikeButton:0.2.3'

    // Audio recorder
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.11'
    implementation project(':audio-recorder-kotlin-1.0.0')
    implementation project(':avatar-view')

    // Rx Java
    api 'io.reactivex.rxjava2:rxandroid:2.0.1'
    api 'io.reactivex.rxjava2:rxjava:2.1.12'

    // Retrofit network
    api 'com.squareup.okhttp3:logging-interceptor:3.9.1'
    api 'com.squareup.retrofit2:retrofit:2.4.0'
    api 'com.squareup.okhttp3:okhttp:3.10.0'
    api 'com.squareup.retrofit2:converter-gson:2.4.0'
    api 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0'
    api 'com.google.code.gson:gson:2.8.4'
    api 'com.github.AniTrend:retrofit-graphql:0.2'

    // Image loading
    api 'com.github.bumptech.glide:glide:4.8.0'

    // rectangle imageview
    implementation 'com.github.siyamed:android-shape-imageview:0.9.3@aar'

    implementation 'com.xw.repo:bubbleseekbar:3.16'
    implementation 'com.github.siyamed:android-shape-imageview:0.9.3@aar'
    implementation 'com.hbb20:ccp:2.2.3'

    implementation 'com.pacioianu.david:ink-page-indicator:1.3.0'
    implementation 'com.ramotion.fluidslider:fluid-slider:0.3.0'

}

repositories {
    mavenCentral()
    maven { url "https://jitpack.io" }
}

}
golovin47 commented 5 years ago

Hello, boblinux. It appears that there is a naming collision. You can see that there is an attribute "size" in fluid-slider-android/fluid-slider/src/main/res/values/attrs.xml. Somewhere in your project, maybe even inside one of the libraries you are using in your project, there is also an attribute with the name "size". To resolve this issue you have to rename this attribute either in fluid-slider-android/fluid-slider/src/main/res/values/attrs.xml or in some other attrs.xml file where it is also located. After renaming it in xml file be sure to use renamed attribute in places you used it before.