“Argument 'context' cannot be null”

后端 未结 1 963
不知归路
不知归路 2020-12-18 23:40

I used to have a Facebook Login button for 5 months in my application and it worked just as intended... until today. This NullPointerException came up:

相关标签:
1条回答
  • 2020-12-19 00:18

    I got the same exception, looks like something is wrong with the new facebook SDK, I suggest to switch back to the previous version.

    I changed my build.gradle

    from: compile 'com.facebook.android:facebook-android-sdk:4.+
    to:   compile 'com.facebook.android:facebook-android-sdk:4.12.1'
    

    and that solved my problem.

    The list of the sdk versions is here: https://developers.facebook.com/docs/android/downloads

    0 讨论(0)
提交回复
热议问题