:app:processDeBUGResources AGPBI:{"kind":"error","text":"Error parsing XML: duplicate attribute","sources": [{"file":"C:\Users\lucia.beltran\Desktop\Picho\Projects\Personal\ improved-tribble\ImprovedTribble\app\build\intermediates\data-binding-layout-out\deBUG\ layout\task_List_item.xml","position":{"startline":16}}],"original":"","tool":"AAPT"}C:\Users\lucia.beltran\Desktop\Picho\Projects\Personal\improved-tribble\ImprovedTribble\app\build\intermediates\data-binding-layout-out\deBUG\layout\task_List_item.xml:17: error: Error parsing XML: duplicate FailedFAILURE: Build Failed with an exception.* What went wrong: Execution Failed for task ':app:processDeBUGResources'.> com.androID.IDe.common.process.ProcessException: Failed to execute aapt* Try: Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output.BUILD FailedTotal time: 3.826 secs
我的布局如下
<layout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="match_parent"> <data> <variable name="task" type="com.pichardo.improvedtribble.models.Task" /> </data> <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:orIEntation="horizontal"> </linearLayout></layout>
并且gradle控制台所说的绑定文件的布局如下:
<linearLayout androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:orIEntation="horizontal" androID:tag="layout/task_List_item_0" xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="match_parent"></linearLayout>
我得到了重复的属性,但我不知道为什么会崩溃.
我读了this question,但我的build.gradle文件中没有这样的东西.
有什么建议?
解决方法 尝试在布局标记中删除androID:layout_wIDth和androID:layout_height =“match_parent”<layout xmlns:androID="http://schemas.androID.com/apk/res/androID"> <data> <variable name="task" type="com.pichardo.improvedtribble.models.Task" /> </data> <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:orIEntation="horizontal"> </linearLayout></layout>总结
以上是内存溢出为你收集整理的Android数据绑定XML错误全部内容,希望文章能够帮你解决Android数据绑定XML错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)