android-list-to-grid
android-list-to-grid copied to clipboard
Keep Getting java.lang.NullPointerException: Attempt to get length of null array
The app keeps crashing tried from API19-23, when i'm trying to implement the animation.
Screenshot
The problem is that it doesn't crash at animation, because in stack there isn't any indication that it would crash in my code.
If I remove ((Animatable) item.getIcon()).start();
it works.
Any idea what can I been doing wrong?
i have te same error. How to fix it?
I removed the animation.
Can you write your device model and version of Android?
animated-vector supported in min API level 21 surround it to check VERSION CODE
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1) { ((Animatable) item.getIcon()).start(); }