我找不到什么是错用的main.xml文件错误:没有资源发现在给定的名称(具有值“@字符串/ action_settings”在“标题”)
这里是主要的代码匹配:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>
我面对的错误是:
Error: No resource found that matches the given name (at 'title' with value '@string/action_settings').
感谢
检查你是否有在strings.xml中 – Raghunandan 2013-05-06 07:42:57
定义在string.xml文件字符串action_settings你做了拼写错误+。所以可能是'@ string/action_settings'找不到的资源:) – 2013-05-06 07:44:46