[英]Gradle build shows error: Unsupported node 'item'
My project does not gradle it shows: 我的项目没有显示它:
Error:Execution failed for task ':app:mergeDebugResources'.
错误:任务':app:mergeDebugResources'的执行失败。 D:\\Android\\MatarealDesigen\\app\\src\\main\\res\\values\\styles.xml: Error: Unsupported node 'item'
D:\\ Android \\ MatarealDesigen \\ app \\ src \\ main \\ res \\ values \\ styles.xml:错误:不支持的节点“ item”
Please go to res/values/styles.xml
and find the error there. 请转到
res/values/styles.xml
并在此处找到错误。 One of the tags called "item" is probably in the wrong place (it should be highlighted in red) :-) 称为“ item”的标签之一可能在错误的位置(应以红色突出显示):-)
In my case the name of one of the attributes was misspelled: 在我的情况下,其中一个属性的名称拼写错误:
tye="layout"
tye =“ layout”
instead of 代替
type="layout"
type =“ layout”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.