与具有相同 ID 的另一个标签冲突

发布于 2025-01-11 09:55:35 字数 1383 浏览 2 评论 0原文

时遇到问题

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

皇甫轩 2025-01-18 09:55:35

缓存失效后重新启动 Mac 即可解决此问题

Restarted Mac after Invalidated Cache is resolve this issue

时光倒影 2025-01-18 09:55:35

尝试用你的模拟器替换Api版本,对我来说它有效

Try replacing the Api version with your emulator, for me it worked

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文