0

我正在尝试处理屏幕方向更改,但应用程序崩溃,尝试搜索我在 logcat 中遇到的错误但徒劳无功。已android:configChanges="orientation|keyboardHidden"在清单中添加并尝试覆盖onConfigurationChanged但得到相同的错误。错误是:

12-21 12:04:31.419: E/AndroidRuntime(14573): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.click4tab.pustakalpha/com.click4tab.pustakalpha.StartTestActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.widget.CompoundButton$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/0x1. Make sure other views do not use the same id.

我们在这里谈论的是哪种观点?在要点上发布代码:链接。xml的代码:链接

编辑:嗯,发现了问题并解决了它。

4

0 回答 0