Error: Class not found when unmarshalling: com.facebook.login.Login Client Request

前端 未结 8 1429
故里飘歌
故里飘歌 2021-01-11 14:35

I am getting this error when hitting the \"Login With Facebook\" (Simple login button).

I have Google, and read other topics here - but I can not see any thing mat

相关标签:
8条回答
  • 2021-01-11 15:33

    I have struggled with this problem and I fixed with multidex enabled

    add this in your build file

    multiDexEnabled true
    

    also this code in your activity

    @Override   
    protected void attachBaseContext(Context context) {
             super.attachBaseContext(context);
             MultiDex.install(this);
    }
    

    after adding this in your build gradle dependencies

    compile 'com.android.support:multidex:1.0.1'
    
    0 讨论(0)
  • 2021-01-11 15:34

    This can happen when the user has the native Facebook App installed.

    You can suppress the attempt to open it by initializing the LoginManager's LoginBehaviour:

     // Don't allow the Facebook App to open.
     LoginManager.getInstance().setLoginBehavior(LoginBehavior.WEB_VIEW_ONLY);
    
    0 讨论(0)
提交回复
热议问题