与具有相同 ID 的另一个标签冲突
时遇到问题
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}]}
我在更新 XML 文件我的代码 完整代码
我尝试了以下
- gradlew assembleDebug
- 工具: viewBindingIgnore = "true"
- File>使缓存无效/重新启动>无效并重新启动
不幸的是没有任何帮助
I'm having a problem updating an XML file
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}]}
My code
Full code
I tried the following
- gradlew assembleDebug
- tools: viewBindingIgnore = "true"
- File> Invalidate Caches / Restart> Invalidate and Restart
Unfortunately nothing helps
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
缓存失效后重新启动 Mac 即可解决此问题
Restarted Mac after Invalidated Cache is resolve this issue
尝试用你的模拟器替换Api版本,对我来说它有效
Try replacing the Api version with your emulator, for me it worked