Android XML: quot;conflicts with another tag that has the same IDquot;(Android XML:Quot;与具有相同IDQuot;的另一个标记冲突)
本文介绍了Android XML:&Quot;与具有相同ID&Quot;的另一个标记冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近从我的项目中删除了一个片段,包括它的布局和视图模型。(FragmentAddFlight,VmAddFlight,FragmentAddFlight_flight.xml)
令人惊讶的是,我收到以下错误:
[databinding] {"msg":"u003cImageView idu003du0027@+id/imageView2u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":277,"col0":20,"line1":286,"col1":85}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView4u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":308,"col0":28,"line1":312,"col1":64}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/editText8u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":314,"col0":28,"line1":318,"col1":60}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView5u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":327,"col0":28,"line1":331,"col1":63}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView14u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":333,"col0":28,"line1":338,"col1":57}]}
[databinding] {"msg":"u003cImageView idu003du0027@+id/imageView2u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":369,"col0":20,"line1":378,"col1":72}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView4u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":400,"col0":28,"line1":404,"col1":60}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/editText8u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":406,"col0":28,"line1":410,"col1":60}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView5u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":419,"col0":28,"line1":423,"col1":71}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView14u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":425,"col0":28,"line1":430,"col1":57}]}
[databinding] {"msg":"u003cImageView idu003du0027@+id/imageView2u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":452,"col0":20,"line1":461,"col1":77}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView4u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":483,"col0":28,"line1":487,"col1":60}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/editText8u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":489,"col0":28,"line1":493,"col1":60}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView5u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":502,"col0":28,"line1":506,"col1":71}]}
[databinding] {"msg":"u003cTextView idu003du0027@+id/textView14u0027u003e conflicts with another tag that has the same ID","file":"C:\Users\Christoph\Documents\Android-Projekte\FlightLogger\app\src\main\res\layout\fragment_add_flight.xml","pos":[{"line0":508,"col0":28,"line1":513,"col1":57}]}
请记住,这些错误中引用的文件已被删除。为什么我会收到这些错误?
我通过Build->Clean Project清理了该项目。我试着通过同样的菜单重建这个项目。但结果保持不变。
有人知道如何解决这个问题吗?
推荐答案
这些文件是在编译时创建的,因此它们可能没有被删除,请尝试在Android Studio中失效缓存并重新启动。
这篇关于Android XML:&Quot;与具有相同ID&Quot;的另一个标记冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:Android XML:&Quot;与具有相同ID&Quot;的另一个标记冲突


基础教程推荐
猜你喜欢
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01