Ramotion / cardslider-android

:octocat: 🃏 Cardslider is a material design UI controller that allows you to swipe through cards with pictures and accompanying descriptions.
https://www.ramotion.com/cardslider-android-ui-app-development-library-to-interact-with-cards/
MIT License
2.34k stars 358 forks source link

Signed APK crashes (Debug APK works perfectly) #16

Closed JavierSegoviaCordoba closed 6 years ago

JavierSegoviaCordoba commented 6 years ago
Caused by: java.lang.IllegalStateException: Binary XML file line #10: Could not instantiate the LayoutManager: com.ramotion.cardslider.CardSliderLayoutManager
...
Caused by: java.lang.IllegalStateException: Binary XML file line #10: Unable to find ViewUpdater
...

How can I solve this problem?

dvg4000 commented 6 years ago

@Dahnark if ViewUpdater is your class that extends DefaultViewUpdater, try to add this string to your project proguard-rules.pro file: -keep public class * extends com.ramotion.cardslider.DefaultViewUpdater

JavierSegoviaCordoba commented 6 years ago

It works, thank you!

bryan-ibrahim commented 6 years ago

Thanks, but I have added the line but the error is still showing

issue