Switch crashes when clicked on Android 5.0

后端 未结 5 613
暗喜
暗喜 2021-02-08 04:28

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

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-08 05:31

    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"

提交回复
热议问题