关于No resource found that matches the given name

在Android开发中,有时候会遇到error: Error: No resource found that matches the given name这样的错误

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

则只需找到

点击,将XXX添加即可

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

 

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

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

posted on 2015-02-04 21:05  硪丨暧恋  阅读(384)  评论(0编辑  收藏  举报

导航