这个错误老坑了 找了好久好久还是没找到解决方案 最后发现没怎么对齐才发现的

这个错误八成是因为有非法空格
所以用csdn的代码块粘贴完之后手动把非法空格去掉

1.ctrl+f搜索“ ”(空格)
Element 'dependency' cannot have character [children], because the type's content type is element-on
2.把非法空格删了
Element 'dependency' cannot have character [children], because the type's content type is element-on
3.TAB
Element 'dependency' cannot have character [children], because the type's content type is element-on

相关文章: