The problem with your project is that the SDK for Facebook has a modified AndroidManifest.xml file that indicates the wrong package that calls the R.java file that will be created in another package, working import.
The original AndroidManifest.xml file can be found here :
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.facebook.android"> <application/> <uses-sdk android:minSdkVersion="8" /> </manifest>
See also my answer regarding the correct dependency configuration of android-support-v4.jar .
CrazyCoder
source share