Believe me, I found a solution to this crash problem on 4.0.x devices.
The problem is that you are using an ObjectAnimator without the "start" and "end" values, api on 4.0.x devices cannot find the "start" value for implementation.
For example, this will crash on devices 4.0.x
int endRadiusValue = 10; ObjectAnimator .ofFloat(roundedGradientDrawable, "cornerRadius", endRadiusValue) .setDuration(200) .start();
And this code works on all api level devices
int startRadiusValue = 0; int endRadiusValue = 10; ObjectAnimator .ofFloat(roundedGradientDrawable, "cornerRadius", startRadiusValue, endRadiusValue) .setDuration(200) .start();
Daniel Deng
source share