Firebaseui-android: AndroidX/Jetpack not working correctly with FirebaseUI

Created on 11 Jun 2018  Â·  9Comments  Â·  Source: firebase/FirebaseUI-Android

  • Android device: Pixel 2 XL
  • Android OS version: P Preview 3
  • FirebaseUI version: 4.0.1

Step 3: Describe the problem:

FirebaseUI isn't using the latest ConstraintLayout. See
https://stackoverflow.com/questions/50774110/androidx-error-inflating-view

Steps to reproduce:

  1. Use firebase-ui 4.0.1
  2. Use jetpack + androidx
  3. Use
startActivityForResult(
        AuthUI.getInstance().build (),
        RC_SIGN_IN)
  1. Verify that you get Error inflating class androidx.constraintlayout.widget.ConstraintLayout
  2. For some reason this library is using androidx.constraintlayout.widget.ConstraintLayout but should be using androidx.constraintlayout.ConstraintLayout

Observed Results:

android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.ConstraintLayout
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2902)

Expected Results:

  • I expect the app to not crash

Relevant Code:

startActivityForResult(
        AuthUI.getInstance()
                .createSignInIntentBuilder()
                .setAvailableProviders(listOf(
                        AuthUI.IdpConfig.EmailBuilder().build(),
                        AuthUI.IdpConfig.GoogleBuilder().build()))
                .build(),
        RC_SIGN_IN)

Most helpful comment

The Firebase Android SDK moved to AndroidX a few weeks ago. Moving
FirebaseUI is next!

On Tue, Jul 9, 2019, 10:00 PM Mario González notifications@github.com
wrote:

Hi, saw Flutter 1.7 moving to AndroidX full compat; so now it would be
Firebase Android SDKs turn, but is this something to be looked on here or
where should we go consult progress?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1348?email_source=notifications&email_token=ACATB2RVYUWKF6RLMM6JHE3P6VUGZA5CNFSM4FEHYWB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZSJLLI#issuecomment-509908397,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACATB2QF5NBAFKLYU7YSXNTP6VUGZANCNFSM4FEHYWBQ
.

All 9 comments

@snotyak duplicate of #1346

Supporting AndroidX may be a problem since it is in alpha and not everyone is ready to incorporate it into their projects unfortunately. Refactoring tool is only in AS canary too, i think.

@krisu7 thanks for chiming in! Yes you're right on all counts. We can't adopt AndroidX yet because the libraries/IDE/jetifier/etc are not yet stable.

And what about now @krisu7 @samtstern ? It's almost been a year and AndroidX is not going away, so maybe time to get some further compatibility?

@elmariocarlos thanks for asking! We have decided to this as soon as the Firebase Android SDKs migrate to depend on AndroidX. The good news is that should be happening in not too long!

Hi, saw Flutter 1.7 moving to AndroidX full compat; so now it would be Firebase Android SDKs turn, but is this something to be looked on here or where should we go consult progress?

The Firebase Android SDK moved to AndroidX a few weeks ago. Moving
FirebaseUI is next!

On Tue, Jul 9, 2019, 10:00 PM Mario González notifications@github.com
wrote:

Hi, saw Flutter 1.7 moving to AndroidX full compat; so now it would be
Firebase Android SDKs turn, but is this something to be looked on here or
where should we go consult progress?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/FirebaseUI-Android/issues/1348?email_source=notifications&email_token=ACATB2RVYUWKF6RLMM6JHE3P6VUGZA5CNFSM4FEHYWB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZSJLLI#issuecomment-509908397,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACATB2QF5NBAFKLYU7YSXNTP6VUGZANCNFSM4FEHYWBQ
.

Thanks for the update @samtstern, looking forward to this =)

Any update to a target time for the implementation of Androidx for FirebaseUI?

Who would be working on an additional flutter implementation ot the UI components of FirebaseAuthUI ?

Thanks

Was this page helpful?
0 / 5 - 0 ratings