- Home /
Facebook SDK: Unable to get provider com.facebook.FacebookContentProvider
I downloaded Facebook SDK for unity, followed facebook's guide and built the example project. If I just click "Build and Run" everything works fine. But if I click Export Google Android Project and import it into eclipse, it gives me the following error, when I try to run it:
java.lang.RuntimeException: Unable to get provider com.facebook.FacebookContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path: DexPathList[[zip file "/data/app/com.company.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.company.myapp-1/lib/arm, /vendor/lib, /system/lib]]
Unity version: 5.0.1p3 Facebook SDK ver: v2.4
UPDATE: I reported this as a bug to facebook, and they verified it: https://developers.facebook.com/bugs/757186444410967/
UPDATE2: Facebook replied to me, that eclipse in no longer supported and I should use Android Studio to integrate the plugin.
I have the same issue but when clicking "Build and Run".
I'm not using eclipse, but when i built the app doesn't run
Answer by spinnerbox · Sep 23, 2015 at 03:36 PM
This is probably because you need to import the facebook content provider plugin in Eclipse as well. Eclipse does not know where to search for the class com.facebook.FacebookContentProvider.
You should also check AndroidManifest.xml file for dependencies whether they have reference to this class.
now am having this issue after puting the app id
i put it... everything go wrong
Your answer
![](https://koobas.hobune.stream/wayback/20220612034752im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Android + Facebook SDK 0 Answers
Hello guys i am new in using Facebook in unity 0 Answers
Facebook share Question? 0 Answers
Can't build for Android 0 Answers