layout-xxx/ causing TypeClass file collision: A resource exists with a different case: '....R$ID.class'
Everything is working fine with my Android project with the standard layout, however whenever I add a new layout-xxx subdirectory, say layout-large, and copy an XML file to it to be my baseline for the new size in question, from that point forward I get the error listed above and the project won't compile.
Location TypeClass file collision: A resource exists with a different case: 'R$ID.class'
If I remove the xml file from the layout-xxx directory everything goes back to working fine. I do have the support-screen tags in the manifest.
I can't possibly need to ID all my views and such inside my lay开发者_运维知识库out with seperate names for seperate layout files do I? This would make coding so rediculously conditional that it would not be worth it.
What am I doing wrong? or missing?
I had the same issue today and it was because of my mistake.
I had my menu defined like this
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/menu_item_share_action_provider_action_bar"
android:showAsAction="always"
android:title="@string/action_bar_share_with">
<menu >
<item android:id="@+Id/someid"
android:title="MyMenu"/>
</menu>
</item>
</menu>
Reason of error was Id with capitalized I which should be actually like id
Hope this helps someone
精彩评论