与具有相同 ID 的另一个标签冲突
conflicts with another tag that has the same ID
我在更新 XML 文件时遇到问题
Found data binding error(s):
[databinding] {"msg":"\u003cRelativeLayout id\u003d\u0027@+id/rlSearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":105,"col0":20,"line1":140,"col1":37}]}
[databinding] {"msg":"\u003ccom.pets.igloopet.utils.CustomEditText id\u003d\u0027@+id/IVsearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":123,"col0":29,"line1":137,"col1":69}]}
[databinding] {"msg":"\u003cRelativeLayout id\u003d\u0027@+id/rlSearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":167,"col0":20,"line1":200,"col1":36}]}
[databinding] {"msg":"\u003ccom.pets.igloopet.utils.CustomEditText id\u003d\u0027@+id/IVsearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":184,"col0":28,"line1":197,"col1":68}]}
我的代码
Full code
我尝试了以下方法
- gradlew assembleDebug
- 工具:viewBindingIgnore = "true"
- 文件> 使缓存无效/重新启动> 使缓存无效并重新启动
不幸的是没有任何帮助
尝试用您的模拟器替换 Api 版本,对我来说它有效
在无效缓存解决此问题后重新启动Mac
我在更新 XML 文件时遇到问题
Found data binding error(s):
[databinding] {"msg":"\u003cRelativeLayout id\u003d\u0027@+id/rlSearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":105,"col0":20,"line1":140,"col1":37}]}
[databinding] {"msg":"\u003ccom.pets.igloopet.utils.CustomEditText id\u003d\u0027@+id/IVsearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":123,"col0":29,"line1":137,"col1":69}]}
[databinding] {"msg":"\u003cRelativeLayout id\u003d\u0027@+id/rlSearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":167,"col0":20,"line1":200,"col1":36}]}
[databinding] {"msg":"\u003ccom.pets.igloopet.utils.CustomEditText id\u003d\u0027@+id/IVsearch\u0027\u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":184,"col0":28,"line1":197,"col1":68}]}
我的代码 Full code
我尝试了以下方法
- gradlew assembleDebug
- 工具:viewBindingIgnore = "true"
- 文件> 使缓存无效/重新启动> 使缓存无效并重新启动
不幸的是没有任何帮助
尝试用您的模拟器替换 Api 版本,对我来说它有效
在无效缓存解决此问题后重新启动Mac