ManuelPeinado / FadingActionBar

Android library implementing a fading effect for the action bar, similar to the one found in the Play Music app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Library Dependencies force my build to use appcompat-v7:23.0.0

VansonLeung opened this issue · comments

compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.github.manuelpeinado.fadingactionbar:fadingactionbar-abc:3.1.2'

Even though I used to implement 22.0.0 in my build.gradle, the fadisngactionbar library now overrides the settings to install 23.0.0 library, rendering my app unbuildable due to missing v-23 constants:

http://stackoverflow.com/questions/32092511/resource-error-in-android-studio-after-update-no-resource-found

android {
compileSdkVersion 21
buildToolsVersion '21.1.2'

defaultConfig {
    applicationId "com.aimpact.android"
    minSdkVersion 16
    targetSdkVersion 16
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

You can do:

    // FadingActionBar
    compile ('com.github.manuelpeinado.fadingactionbar:fadingactionbar:3.1.2')
    compile ('com.github.manuelpeinado.fadingactionbar:fadingactionbar-abc:3.1.2'){
        exclude(module: 'support-v4')
        exclude(module: 'appcompat-v7')
    }

Thanks!