When clicking on a switch in my app in Android 5.0 the app crashes with the logcat shown below. The logcat doesn\'t reference my code anywhere in it, and this switch has worked
I had the same problem. I solved it by changing:
android:thumb="@null"
to:
android:thumb="@drawable/transparent_thumb" android:track="@drawable/transparent_track"
transparent_thumb & transparent_track are two png files which are transparent. They have matched size to your customized Switch.