Android : Class file collision: A resource exists with a different case


Posted on : Sat, 16th May 15 02:10 pm (Updated on : Sat, 16th May 15 02:10 pm) UTC
Author : Code2care
100+ votes

Class file collision: A resource exists with a different case: '/AppName/bin/classes/com/example/app/ className.class'.

If you are getting such kind of error in one of your Java Classes in your Android Project folder, then its because you might have had a class with the same name but having difference case, to resolve this issue,

  1. Go to Window -> Show view -> Navigator
  2. Now you should be able to see classes folder in your Project Navigator view at the left.
  3. Just delete the classes folder.
  4. Do a Clean + Build.
  5. The error must go

You may also try delete the gen folder, but that didn't work for me.



Advertisements





Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +