2012-08-11 32 views
0

我終於做了示例phonegap項目運行,但因爲我想改變index.html中的東西,它給了我這個錯誤。Android Phonegap

[2012-08-11 17:04:46 - s] W/ResourceType(9484): Bad XML block: header size 60 or total size 0 is larger than data size 0 
    [2012-08-11 17:04:46 - s] C:\Users\TOomo\workspace\s\res\layout\activity_test.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '@string/hello_world'). 
    [2012-08-11 17:04:46 - s] C:\Users\TOomo\workspace\s\res\menu\activity_test.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '@string/menu_settings'). 

你知道爲什麼嗎?

回答

0

您必須在值定義字符串new_game像

您的字符串 您的字符串 參考this

你可以 - 如果你使用eclipse然後右鍵單擊該項目創造價值的xml文件和選擇其他,然後選擇android xml文件,然後給出窗口選擇資源類型作爲值,

0

點擊你的「res」文件夾並轉到「值」。打開名爲「字符串」的文件。確保你已經在那裏設置了一個名爲「hello_world」的字符串和另一個名爲「menu_settings」的字符串。