java.lang.RuntimeException: Unknown animation name: x

  android

Since i enable proguard im starting have this crash(below) when i press an option on DrawerLayout.
Navigation is made with navigation component and it is using default animation.
I understand i must put rule on proguard, but whick rule and more important why?

E/AnimationUtils: loadAnimation: resourceName = mypackagename:animator/nav_default_exit_anim
E/AndroidRuntime: FATAL EXCEPTION: main
Process: mypackagename, PID: 22537
java.lang.RuntimeException: Unknown animation name: x
at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:214)
at android.view.animation.AnimationUtils.createAnimationFromXml(AnimationUtils.java:179)
at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:143)
at l.i.b.b.A(:2)

Source: Android Questions

2 thoughts on - java.lang.RuntimeException: Unknown animation name: x

LEAVE A COMMENT