skip to Main Content

I’m having a problem updating an XML file

Found data binding error(s):

[databinding] {"msg":"u003cRelativeLayout idu003du0027@+id/rlSearchu0027u003e 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 idu003du0027@+id/IVsearchu0027u003e 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 idu003du0027@+id/rlSearchu0027u003e 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 idu003du0027@+id/IVsearchu0027u003e 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

2

Answers


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

    Login or Signup to reply.
  2. Restarted Mac after Invalidated Cache is resolve this issue

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search