錯誤提示: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>