我找不到什麼是錯用的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