Reputation: 1050
Gradle build is giving me an error
Error:Error: Unsupported node 'item'
file name where I am getting the error
app\src\main\res\values\drawables.xml
My drawables.xml file code
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<item name="ic_menu_camera" parentType="drawable">@android:drawable/ic_menu_camera</item>
<item name="ic_menu_gallery" parentType="drawable">@android:drawable/ic_menu_gallery</item>
<item name="ic_menu_slideshow" parentType="drawable">@android:drawable/ic_menu_slideshow</item>
<item name="ic_menu_manage" parentType="drawable">@android:drawable/ic_menu_manage</item>
<item name="ic_menu_share" parentType="drawable">@android:drawable/ic_menu_share</item>
<item name="ic_menu_send" parentType="drawable">@android:drawable/ic_menu_send</item>
</resources>
This was working fine earlier. I did not make any change in this file recently and it started failing. So I think the issue is somewhere else.
How do I troubleshoot this issue.
Upvotes: 1
Views: 745
Reputation: 140
Try changing parentType to type. parentType is not a supported keyword, but type is.
Upvotes: 2