yavski / fab-speed-dial

FAB flinging out actionable menu items using the Speed dial metaphor
Apache License 2.0
478 stars 123 forks source link

How can i change the design support Library?? #64

Open lekeope opened 7 years ago

lekeope commented 7 years ago

Am Currently using support library 25.3.1 in my app how can i change the support library of this LIBRARY to match the one in my App??

@yavski

lekeope commented 7 years ago

How can i change this: https://github.com/yavski/fab-speed-dial/blob/master/library/build.gradle

to the current version of Support Libraries??

@paour @yavski @alanjcaceres @i906 @dstd Please help

paour commented 7 years ago

You don't have to, Gradle will use the highest version of all dependencies. Are you saying there is a conflict or bug with this lib when used with the latest Support lib?

lekeope commented 7 years ago

Yes;

This mesaage:

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.3.1, 23.3.0. Examples include com.android.support:animated-vector-drawable:25.3.1 and com.android.support:cardview-v7:23.3.0

and the App takes about 5 secs before loading

paour commented 7 years ago

I doubt this would cause a 5s startup delay, which you can diagnose with a variety of tools.

To avoid the warning, you can use Gradle androidDependencies to indentify where they're being pulled from, and include the latest version in your app's build.gradle if you think that's useful.

lekeope commented 7 years ago

Thanks, for the info but i still don't understand why this message:

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.3.1, 23.3.0. Examples include com.android.support:animated-vector-drawable:25.3.1 and com.android.support:cardview-v7:23.3.0

is showing on my gradle page.

Should just ignore?

ghost commented 7 years ago

I have the same problem. I think it should not be ignored. I'm using vector icons in the menu items and If I run my app in a pre-Lollipop device, the item icons are not showing, only the floating action buttons. screenshot

lekeope commented 7 years ago

@paour @chacongalvez

I finally found a Fix.

The Library uses card_view library version 23.3.0

If you wanna see for yourself goto \MyApp\.idea\libraries directory and you'll see the specific library that is out of line.

FIX: note the inappropriate library (in this case Card View), goto android studio and import the correct version instead (25.3.1 is latest).

Thanks

mradzinski commented 7 years ago

How about adding this into your build.gradle of your app:

configurations.all {
    resolutionStrategy {
        force 'com.android.support:design:26.0.1'
    }
}

I mean, that pretty much works for any library you want to force into any build as long as the library doesn't involve breaking changes.

penn5 commented 7 years ago

Please see pull request #74 (sorry for bad Groovy code, please help!)

penn5 commented 7 years ago

Nevermind, I didn't really understand the Gradle system (I though this is a sub-project)

morlombakop commented 6 years ago

@Edge-Developer , i have the same issue here, how to fix this. importing the latest version of card-view does not fix the issue

lekeope commented 6 years ago

go to \MyApp.idea\libraries directory to which library/libraries is/are out of line.