FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

Facebook SDK 4.27.0 Issue - WebDialog

Open hvkale opened this issue 9 years ago • 4 comments

Environment

  • Android device: Emulator
  • Android OS version: 8.0.0
  • Google Play Services version: 11.5.09 (on Emulator)
  • Firebase/Play Services SDK version: 11.4.2
  • FirebaseUI version: 3.0.0
  • Facebook SDK Version: 4.27.0

I upgraded my firebase-ui dependency to 3.0.0 and Facebook-SDK to 4.27.0

    // Firebase UI
    implementation "com.firebaseui:firebase-ui-database:3.0.0"
    implementation "com.firebaseui:firebase-ui-auth:3.0.0"

    // Facebook Login
    implementation "com.facebook.android:facebook-android-sdk:4.27.0"

I looked into the FacebookProvider.java class and it does have updated code from https://github.com/firebase/FirebaseUI-Android/pull/929

WebDialog.setWebDialogTheme(theme);

Not sure what I need to do. Please help.

Observed Results:

java.lang.NoSuchMethodError: No static method setWebDialogTheme(I)V in class Lcom/facebook/internal/WebDialog; or its super classes

Expected Results:

  • App compiles and runs without this error

hvkale avatar Oct 16 '17 03:10 hvkale

I placed a breakpoint in FacebookProvider.java and seems it's consuming new code now. No other action was necessary.

hvkale avatar Oct 16 '17 03:10 hvkale

Hi! I am having this exact problem. Could you give more details about your solution?

Thank you.

lalo2302 avatar Nov 06 '17 19:11 lalo2302

@lalo2302 make sure to be using FirebaseUI 3.1 and com.facebook.android:facebook-login:4.27.0. Also try cleaning your cache.

SUPERCILEX avatar Nov 06 '17 19:11 SUPERCILEX

@SUPERCILEX I was using an outdated version of firebase ui. Thank you very much.

lalo2302 avatar Nov 07 '17 15:11 lalo2302