1

I want added this library to my project : Click too see . but when add gradle.build code and click sync button, show me this error and i can't add this library !

Error Message :

here

I haven't rippleColor in color.xml, but it reports this error!

How can I fix it?

Aspicas
  • 4,498
  • 4
  • 30
  • 53
Dre.Dre666
  • 867
  • 1
  • 6
  • 9

1 Answers1

0

You got this error because rippleColor is defined in MaterialDesignLibrary and there are dependences in your project that already defined the same attribute. Please check it in your build.gradle. It could be com.android.support:design or com.google.android.gms:play-services.

The solution is to only include the library you need, instead of adding the whole library.

In my project I use com.android.support:design + com.android.support:appcompat instead of the material library.

Also see Gradle error: "Attribute "rippleColor" has already been defined" in android studio

Community
  • 1
  • 1
Liuting
  • 1,098
  • 17
  • 35
  • tnx, how can i added this library to my project? – Dre.Dre666 Nov 26 '15 at 12:07
  • Add which library? Please post your ```build.gradle``` – Liuting Nov 26 '15 at 12:09
  • Upload to this lnk : http://s000.tinyupload.com/?file_id=01969553438155645288 . please help me if you can :( – Dre.Dre666 Nov 26 '15 at 12:18
  • You already added design library ```com.android.support:design``` and ```com.android.support:appcompat```, you can use ```Theme.AppCompat``` for material UI, why do you have to add ```MaterialDesignLibrary``` into your project? – Liuting Nov 26 '15 at 12:26
  • I need to `Slider with number indicator` in this project. how can create or use this? tnx – Dre.Dre666 Nov 26 '15 at 12:28
  • Dear @Liuting, can you help me? – Dre.Dre666 Nov 26 '15 at 12:48
  • Then see if you can remove the design library, otherwise you have to clone the library, make change on that name and add it as external library to your project. There are lots of people having the same problem:https://github.com/navasmdc/MaterialDesignLibrary/issues/355 – Liuting Nov 26 '15 at 13:57
  • big thanks my dear friend <3 , i want connect you from skype, line , telegram or ... how can i it? tnx – Dre.Dre666 Nov 28 '15 at 06:05