MaterialDesignLibrary
MaterialDesignLibrary copied to clipboard
Conflict with support library
When added the android support library and try to build the project I get this error:
Error:(1) Attribute "rippleColor" has already been defined Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/hilderic/Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
I just need the library for backwards compatible progress bar. Can you help me out?
This issue was already reported as #274, #277 and #279
And how Can I use this?the compile of library don't have changed?
I guess you have several options:
- Clone this library, rename the attribute, import to your project.
- Fix or remove the other conflicting library.
- Replace this library with https://github.com/ZieIony/Carbon, https://github.com/rey5137/material, https://github.com/negusoft/GreenMatter or other.
Found at https://github.com/mikepenz/MaterialDrawer/issues/379#issuecomment-112840442
Solutions
- Remove Material Design Library (third-party library, NOT official).
- Import Material Design Library (third-party library) without Gradle and rename 'rippleColor' from attributes.xml.
- Wait for the developer of Material Design Library (third-party library).
Are there some date, to fix this in this library?
Same problem, i had to stop using this lib cause i need com.android.support:design:22.2.1.
I've compiled a version which can be used alongside support design library (eliminates Attribute "rippleColor" has already been defined error) :
compile 'com.android.support:design:22.2.1'
changes: https://github.com/kosiara/MaterialDesignLibrary/commit/e94c9f37bf427d5d90bc8771357296fc36d9b2d8
binary aar file: https://github.com/kosiara/MaterialDesignLibrary/raw/e3a94ec606062eeb3ae2421a119cd729c43fee76/compiled-versions/MaterialDesign-md_ready-release.aar
No need to import Material Design Library as library. I have forked the current version in here: https://github.com/vajro/MaterialDesignLibrary. I have modified the attribute "rippleColor" to "mRippleColor"
Hope it helps few people.
@niwinnm i have problem when am using compile 'com.github.vajro:MaterialDesignLibrary:1.6'. It gives mw an error which says Failed to resolve: com.github.vajro:MaterialDesignLibrary:1.6 What can i do to resolve this?
Have you added the maven repo for jitpack? If not kindly add the following lines in your gradle file.
repositories { maven { url "https://jitpack.io" } }
@niwinnm Thanks, worked like a charm
@niwinnm after compiling com.github.vajro:MaterialDesignLibrary:1.6 I'm getting null pointer exception in TextView widget , same error was coming in 'com.github.navasmdc:MaterialDesign:1.5@aar'
@niwinnm Thanks for doing this. Works.
为什么不改了rippleColor再更新一下版本?
@dalvikking - Sorry for delay in reply. I am not sure about this error. I simply changed the rippleColor attribute to avoid naming conflict. If you could elaborate on the issue, I could modify my version to fix your error.
@niwinnm even after adding jitpack repo in maven I am getting
Failed to resolve: com.github.vajro:MaterialDesignLibrary:1.6