error: Error: No resource found that matches the given name (at 'text' with value '@string/

来源:互联网 发布:淘宝手机游戏交易平台 编辑:程序博客网 时间:2024/05/16 07:05

错误提示:error: Error: No resource found that matches the given name (at 'text' with value'@string/
 hello2').

 

解决方法:

在/res/values/strings.xml 添加上你问题里面补充的内容就可以了

 

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <string name="hello">这是第一个Activity。</string>
    <string name="hello2">这是第二个Activity。</string>
    <string name="app_name">Examples_03_04</string>

</resources>

 

原创粉丝点击