Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook SDK Android, java.lang.RuntimeException: Unable to get provider com.facebook.internal.FacebookInitProvider

Has anyone encountered this error before with Facebook SDK for Android?

java.lang.RuntimeException: Unable to get provider com.facebook.internal.FacebookInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.internal.FacebookInitProvider" on path: DexPathList[[zip file "/data/app/com.hellogold.app.dev-2/base.apk"]

like image 760
kaizenx Avatar asked Nov 09 '22 01:11

kaizenx


1 Answers

I've got same problem and was because I call MultiDex.install in App.onCreate, moving to App.attachBaseContext() solved the problem. Because provides installing starts before App.onCreate.

like image 61
Glorin Avatar answered Nov 14 '22 22:11

Glorin