- Home /
Android Build Crashes on Start: Didn't find class "com.facebook.FacebookContentProvider"
Using Unity 2017.1.2f1, I built my app for Android. Build completed successfully. I used "Build & Run", which loaded it onto the Android device I have attached to my PC via USB.
When the app starts on my Android device, it says, "Unfortunately, Bingo has stopped."
Looking at the logcat, I see this:
E/AndroidRuntime(24085): FATAL EXCEPTION: main
E/AndroidRuntime(24085): Process: com.darrensmith.net.bingo, PID: 24085
E/AndroidRuntime(24085): 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.darrensmith.net.bingo-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.darrensmith.net.bingo-2, /vendor/lib, /system/lib]]
E/AndroidRuntime(24085): at android.app.ActivityThread.installProvider(ActivityThread.java:5121)
E/AndroidRuntime(24085): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4713)
E/AndroidRuntime(24085): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4596)
E/AndroidRuntime(24085): at android.app.ActivityThread.access$1600(ActivityThread.java:169)
E/AndroidRuntime(24085): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
E/AndroidRuntime(24085): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(24085): at android.os.Looper.loop(Looper.java:146)
E/AndroidRuntime(24085): at android.app.ActivityThread.main(ActivityThread.java:5487)
E/AndroidRuntime(24085): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(24085): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(24085): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
E/AndroidRuntime(24085): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
E/AndroidRuntime(24085): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(24085): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.FacebookContentProvider" on path: DexPathList[[zip file "/data/app/com.darrensmith.net.bingo-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.darrensmith.net.bingo-2, /vendor/lib, /system/lib]]
E/AndroidRuntime(24085): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
E/AndroidRuntime(24085): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime(24085): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime(24085): at android.app.ActivityThread.installProvider(ActivityThread.java:5106)
E/AndroidRuntime(24085): ... 12 more
What could case the class com.facebook.FacebookContentProvider to not be found?
This app builds & runs successfully in iOS and Windows.
Hey! Same exact problem here. Not even using facebook on the scene I'm trying to build. Did you ever find a solution?
Answer by $$anonymous$$ · Jan 21, 2019 at 03:19 AM
hey darrensmith, I got this error too. have you solved it?
Your answer
![](https://koobas.hobune.stream/wayback/20220612140732im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
can't build android app with facebook sdk 5 Answers
Unity Android - Image share to facebook fails 1 Answer
Openning deep link to a Facebook Messenger on Android 1 Answer
Facebook Login - Android 1 Answer
Facebook Android Studio 0 Answers