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>
|