android studioにおいて以下のエラーが発生します。 どのように解決したら良いかがわかりません。
android studioにおいて以下のエラーが発生します。 どのように解決したら良いかがわかりません。 [databinding] {"msg":"\u003candroidx.constraintlayout.widget.ConstraintLayout id\u003d\u0027@+id/choki\u0027\u003e conflicts with another tag that has the same ID","file":"app/src/main/res/layout/activity_main.xml","pos":[{"line0":1,"col0":0,"line1":56,"col1":51}]} [databinding] {"msg":"\u003cImageButton id\u003d\u0027@+id/choki\u0027\u003e conflicts with another tag that has the same ID","file":"app/src/main/res/layout/activity_main.xml","pos":[{"line0":10,"col0":4,"line1":21,"col1":78}]}
Android開発・54閲覧
ベストアンサー
conflicts with another tag that has the same ID って書いてあるので 同じIDのViewが何個かあるのでは? activity_main.xmlの @+id/chokiが怪しそう idなんで、xml内で一意になるように設定する必要があります。被ってるidは名前を変えましょう
1人がナイス!しています
質問者からのお礼コメント
言われた通りでした! 無事に解決できました。 ありがとうございました!!
お礼日時:1/14 23:16