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


错误提示: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>

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM