romainpiel / Shimmer-android

(DEPRECATED) An Android TextView with a shimmering effect
2k stars 438 forks source link

NoSuchMethod Exception setGradientX() when use proguard #11

Closed changety closed 9 years ago

changety commented 10 years ago

https://github.com/RomainPiel/Shimmer-android/blob/master/library/src/main/java/com/romainpiel/shimmer/Shimmer.java

animator = ObjectAnimator.ofFloat(shimmerView, "gradientX", fromX, toX);

Using reflection in this method throws NoSuchMethod Exceptopm when build by proguard. add -keep class com.shimmer.{;}" and fix the problem.

romainpiel commented 10 years ago

Well what do I need to fix? Just add that line to your project's proguard file.