Android Question Issue implementing FirebaseUI-auth

Edwin Tenesaca Gomez

Member
Licensed User
I have a Issue implementing FirebaseUI-auth with a firebase-ui-auth-6.2.0 and com.google.firebase:firebase-auth 19.4.0
Just the example by @DonManfred in Firebase UI Auth - a new Dimension in Authentication

I'm using b4a 10.2
SDK version: 4333796
Java jdk1.8.0_261
API: 28 or 29 sama results

Note: I had an exception in your example and I had to change:
Your code:
ib.Initialize("",fbauth.createSignInIntentBuilder,"390869652019-adab4v6d3ksmh741g9lmt5a6a7n8erot.apps.googleusercontent.com")
Change by:
ib.Initialize("login",fbauth.createSignInIntentBuilder)

And I have this runtime exception

Exception:
** Activity (main) Pause, UserClosed = false **
java.lang.NoSuchFieldError: No static field Transform_android_rotation of type I in class Landroidx/constraintlayout/widget/R$styleable; or its superclasses (declaration of 'androidx.constraintlayout.widget.R$styleable' appears in /data/app/com.sanpiat.testing-TDsP_1gQuT4paCdvNFzyUA==/base.apk)
    at androidx.constraintlayout.widget.ConstraintSet$Transform.<clinit>(ConstraintSet.java:1071)
    at androidx.constraintlayout.widget.ConstraintSet$Constraint.<init>(ConstraintSet.java:1262)
    at androidx.constraintlayout.widget.ConstraintSet.clone(ConstraintSet.java:1510)
    at com.firebase.ui.auth.ui.idp.AuthMethodPickerActivity.onCreate(AuthMethodPickerActivity.java:126)
    at android.app.Activity.performCreate(Activity.java:7009)
    at android.app.Activity.performCreate(Activity.java:7000)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2742)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2872)
    at android.app.ActivityThread.-wrap11(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6543)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:810)
 

DonManfred

Expert
Licensed User
SDK version: 4333796
Is this the buildtools-version?

This is the Tools needed with 10.2
Download Android SDK Command line tools <- 6609375
Also note to download the new resources.

Setup
 
Upvote 0

Edwin Tenesaca Gomez

Member
Licensed User
Hello @DonManfred I have configured everything, just as you suggested,
SDK version: 6609375
b4a v 10.2
platforms\android-30

And now i have this Error

compiling:
B4A Versión: 10.2
Java Versión: 8
Parseando código.    (0.44s)
Building folders structure.    (0.06s)
Compilando código.    (0.30s)
    
El fichero ObfuscatorMap.txt fue creado en la carpeta Objects.
Compilado códigos de diseños.    (0.03s)
Organizando librerías.    (0.00s)
    (AndroidX SDK)
Generando el fichero R.    Error
c:\android\sdktools6\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:335: error: Attribute "android:alpha" has already been defined
c:\android\sdktools6\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationX" has already been defined
c:\android\sdktools6\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationY" has already been defined
c:\android\sdktools6\tools\..\extras\b4a_remote\androidx\constraintlayout\constraintlayout\2.0.1\unpacked-constraintlayout-2.0.1\res\values\values.xml:338: error: Attribute "android:translationZ" has already been defined
 
Upvote 0
Top