MaterialDesignLibrary icon indicating copy to clipboard operation
MaterialDesignLibrary copied to clipboard

Conflict with support library

Open perpetuatingcuriosity opened this issue 9 years ago • 16 comments

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?

perpetuatingcuriosity avatar Jun 15 '15 17:06 perpetuatingcuriosity

This issue was already reported as #274, #277 and #279

mkorniluk avatar Jun 16 '15 10:06 mkorniluk

And how Can I use this?the compile of library don't have changed?

Spiderbezno avatar Jun 29 '15 08:06 Spiderbezno

I guess you have several options:

  1. Clone this library, rename the attribute, import to your project.
  2. Fix or remove the other conflicting library.
  3. Replace this library with https://github.com/ZieIony/Carbon, https://github.com/rey5137/material, https://github.com/negusoft/GreenMatter or other.

mkorniluk avatar Jun 29 '15 08:06 mkorniluk

Found at https://github.com/mikepenz/MaterialDrawer/issues/379#issuecomment-112840442

Solutions

  1. Remove Material Design Library (third-party library, NOT official).
  2. Import Material Design Library (third-party library) without Gradle and rename 'rippleColor' from attributes.xml.
  3. Wait for the developer of Material Design Library (third-party library).

kendrikat avatar Jul 09 '15 16:07 kendrikat

Are there some date, to fix this in this library?

Spiderbezno avatar Jul 10 '15 06:07 Spiderbezno

Same problem, i had to stop using this lib cause i need com.android.support:design:22.2.1.

Informatheus avatar Aug 18 '15 17:08 Informatheus

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

kosiara avatar Sep 03 '15 12:09 kosiara

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 avatar Oct 10 '15 09:10 niwinnm

@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 avatar Nov 27 '15 17:11 niwinnm

@niwinnm Thanks, worked like a charm

muragewanjohi avatar Dec 19 '15 22:12 muragewanjohi

@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'

varun-2108 avatar Dec 28 '15 18:12 varun-2108

@niwinnm Thanks for doing this. Works.

vsars7 avatar Jan 08 '16 00:01 vsars7

为什么不改了rippleColor再更新一下版本?

linq8261 avatar Apr 19 '16 08:04 linq8261

@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 avatar Apr 19 '16 08:04 niwinnm

@niwinnm even after adding jitpack repo in maven I am getting

Failed to resolve: com.github.vajro:MaterialDesignLibrary:1.6

harishannam avatar Oct 30 '16 05:10 harishannam