PhilJay / CircleDisplay

Android View for displaying and selecting values in a circle-shaped View, with animations and touch gestures.
288 stars 103 forks source link

android.view.InflateException #3

Closed alexandersch closed 9 years ago

alexandersch commented 9 years ago

I have a few reports on this error:

android.view.InflateException: Binary XML file line #97: Error inflating class com.philjay.circledisplay.CircleDisplay

Caused by: java.lang.NoClassDefFoundError: android.animation.ObjectAnimator at com.philjay.circledisplay.CircleDisplay.init(CircleDisplay.java:128) at com.philjay.circledisplay.CircleDisplay.(CircleDisplay.java:102)

I figured out that the problem has to do with the support library. it does not support the ObjectAnimator for API level 11 and below.

I guess a workaround would be, only animate when API level is above 11.

Is there maybe another fix for this?

PhilJay commented 9 years ago

Circle Display only supports Android 3.0 and higher. If you want to support lower android versions, you have to remove the animations.

alexandersch commented 9 years ago

Thnx, i'll disable them for Android 2.3.*