It looks like an error in the library itself on Android 6.0, Possible ways to avoid the error:
1) Use the com.balysv: material-ripple: 1.0.2 library, which seems more stable.
2) Or you can use a separate layout of the place for 21+, let Android M cope with the wave itself. Just use a suitable ripple holder for layouts and views
3) Or you can change the source code of the library as this sentence
4) A fixed version of this @ git library is available, and you can use it in your gradle as
compile 'com.github.Hitta:RippleEffect:82cf00e551' repositories { ... maven { url "https://jitpack.io" } }
source share