這是我的菜單式的Android XML沒有資源發現錯誤menu.xml文件
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<group android:id="@+id/rose" android:menuCategory="container" android:visible="true">
<item android:icon="@drawable/login.png" android:id="@layout/activity_login_page"></item>
<item android:id="@layout/activity_registration__page" android:icon="@drawable/registration.png"></item>
<item android:id="@layout/activity_online_shopping" android:icon="@drawable/shopping.png"></item>
<item android:id="@layout/activity_your_total_bill" android:icon="@drawable/logout.png"></item>
</group>
</menu>
這是我發現的錯誤,但我有資源都在我的文件夾繪製
W/ResourceType(3000): Bad XML block: header size 116 or total size 0 is larger than data size 0
[2012-11-22 15:32:20 - OrderPlacemnet] E:\workspace\OrderPlacemnet\res\menu\rosemenu.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/login.png').
[2012-11-22 15:32:20 - OrderPlacemnet] E:\workspace\OrderPlacemnet\res\menu\rosemenu.xml:5: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/registration.png').
[2012-11-22 15:32:20 - OrderPlacemnet] E:\workspace\OrderPlacemnet\res\menu\rosemenu.xml:6: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/shopping.png').
[2012-11-22 15:32:20 - OrderPlacemnet] E:\workspace\OrderPlacemnet\res\menu\rosemenu.xml:7: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/logout.png').
請幫我尋找錯誤
在eclipse中做一個「乾淨的項目」可能會解決你的問題。 –
確保你在'res/drawable'文件夾中放置了'logout.png'圖像,並從Project-> Clean ...清潔你的項目...在Eclipse IDE –
請儘快回覆我任何答案 –