简体   繁体   中英

Gradle build shows error: Unsupported node 'item'

在此处输入图片说明

My project does not gradle it shows:

Error:Execution failed for task ':app:mergeDebugResources'. D:\\Android\\MatarealDesigen\\app\\src\\main\\res\\values\\styles.xml: Error: Unsupported node 'item'

Please go to res/values/styles.xml and find the error there. One of the tags called "item" is probably in the wrong place (it should be highlighted in red) :-)

In my case the name of one of the attributes was misspelled:

tye="layout"

instead of

type="layout"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM