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
Changing the theme in manifest file worked for me. i had android:theme="@android:style/Theme.NoTitleBar"
and changed it into android:theme="@android:style/Theme.DeviceDefault"