R.Java from Facebook SDK collides with application R.java

view story

http://stackoverflow.com – I'm trying to integrate the Facebook SDK to an application finished and running. The Facebook login activity is embedded in the Facebook SDK and requires the generated R.java provided in the examples. The problem is that there's a collision between my app R.java and the Facebook R.java and an image from my app is appearing instead of the close button of the facebook window: in com.facebook.android/R.java public static final int com_facebook_close = 0x7f02000a; in my app/R.java public static final int hm2x=0x7f02000a; as you can see, both files have the same id and the fac (HowTos)