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