关于No resource found that matches the given name

来源:互联网 发布:网络花店创业计划书 编辑:程序博客网 时间:2024/04/30 01:26
在Android开发中,有时候会遇到error: Error: No resource found that matches the given name这样的错误

①倘若后面跟着的是at 'text' with value '@string/XXX'

则只需找到

点击,将XXX添加即可

这是我们点击下方的会发现其中多了XXX【原本是没有的,也可以直接在这里写入相应代码】

 

②倘若遇到的是@id/XXX'

则因为id前忘了一个+号,补上即可

0 0
原创粉丝点击