No resource found that matches the given name (at 'title' with value '@string/action_settings')

后端 未结 6 1256
一向
一向 2021-02-07 23:01

So I recently (like today recently) began to try to work in eclipse. I\'ve been following android developers beginners course, and everything went fine until this point. I\'ve g

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 23:59

    ha - I am doing the tutorial and got the same thing. You copied/pasted the entire strings.xml file, but this file is missing a value that the app needs. It's a bug in their tutorial.

    Add this line back to strings.xml:

    something here
    

    Where I put "something here" I can't remember what the original text was.

    The problem is that main.xml (under res/menu), which of course we didn't touch in the tutorial, references the string "action_settings". This was deleted when you copied / pasted the entire string.xml from their example.

提交回复
热议问题