我在更新 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}]}
我的代碼 完整代碼
我嘗試了以下
- gradlew assembleDebug
- 工具:viewBindingIgnore = "true"
- 檔案>無效快取/重新啟動>無效并重新啟動
不幸的是,沒有任何幫助
uj5u.com熱心網友回復:
嘗試用你的模擬器替換 Api 版本,對我來說它有效
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/438111.html
