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
It seems like a known issue in Android 5.
Please refer the following link :
https://code.google.com/p/android-developer-preview/issues/detail?id=1704