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
Try replacing the Api version with your emulator, for me it worked
Restarted Mac after Invalidated Cache is resolve this issue