Java Android:IllegalArgumentException:两个视图在层次结构中具有相同的id

Java Android:IllegalArgumentException:两个视图在层次结构中具有相同的id,java,android,Java,Android,我知道如果对两个视图使用相同的id,可能会发生此错误。 但是,在我的例子中,我将视图的id更改了3次,改为不同的名称。 在项目中搜索重复id,没有具有此id的视图。 当我打开应用程序时,仍然会发生这种情况。 我也重建了这个项目 有什么建议吗 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.test/com.myapp.test.MainActivity}: java.lang.Illega

我知道如果对两个视图使用相同的id,可能会发生此错误。 但是,在我的例子中,我将视图的id更改了3次,改为不同的名称。 在项目中搜索重复id,没有具有此id的视图。 当我打开应用程序时,仍然会发生这种情况。 我也重建了这个项目

有什么建议吗

java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.myapp.test/com.myapp.test.MainActivity}: java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class android.support.design.stateful.ExtendableSavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/fab_main_rs. Make sure other views do not use the same id.

我认为您缺少id定义前面的
+


也就是说,您应该使用
android:id=“@+id/fab\u main\u rs”
,而不是
android:id=“@+id/fab\u main\u rs”

发布您的活动及其布局代码