我已按照所有步骤创建文件main.xml
和string.xml
,但在编译项目时出错。我尝试使用 Shift + Ctrl + O 和Project -> Clean
......
[03/30/2013 11:24:52 - Asteroid] W / ResourceType (3827): Bad XML block: header size 2270 or total size 148813088 is larger than data size 0
[03/30/2013 11:24:52 - Asteroid] / home / syra / workspace / Asteroid / res / menu / asteroide.xml: 3: error: Error: No resource found That matches the given name (at 'title' with value '@ string / action_settings').
如果有人可以帮助我,我将不胜感激。
答案 0 :(得分:2)
No resource found That matches the given name (at 'title' with value '@ string / action_settings').
只需打开res/values/strings.xml
,然后添加名称为action_settings
的元素和相应的文字。
<string name="action_settings">Settings for this action</string>
如果您认为这已存在,请仔细检查两个名称的拼写。