Android Question app error

hitesh.k

Member
https://www.b4x.com/android/forum/threads/firebaseauth-authenticate-your-users.67875/#content
hello i was trying to implement example covered in this tutorial but getting this error
error:
Logger connected to:  samsung SM-A515F
--------- beginning of main
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzv@c449e46
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create  **
** Activity (main) Resume **
SignInWithGoogle called
** Activity (main) Pause, UserClosed = false **
java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;
    at androidx.savedstate.SavedStateRegistryController$Companion.create(Unknown Source:2)
    at androidx.savedstate.SavedStateRegistryController.create(Unknown Source:2)
    at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:146)
    at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:108)
    at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.<init>(com.google.android.gms:play-services-auth@@20.3.0:1)
    at java.lang.Class.newInstance(Native Method)
    at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
    at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1328)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4035)

the code i am using is
code:
Sub Process_Globals
    Private auth As FirebaseAuth
    
End Sub

Sub Globals
    Private lblName As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
        auth.Initialize("auth")
    End If
    Activity.LoadLayout("1")
    If auth.CurrentUser.IsInitialized Then Auth_SignedIn(auth.CurrentUser)
End Sub

Sub btnSignIn_Click
    auth.SignInWithGoogle
End Sub

Sub btnSignOut_Click
    auth.SignOutFromGoogle
    lblName.Text = "Goodbye!"
End Sub

Sub Auth_SignedIn (User As FirebaseUser)
    Log("SignedIn: " & User.DisplayName)
    lblName.Text = "Hello: " & User.DisplayName
End Sub
    
Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
and yes i have added sha1 sha256 added google service double checked my installation
manifest:
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="31"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)

CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)

CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
any one shed some light
 

MarcoRome

Expert
Licensed User
Longtime User
Have you updated SDK??

1678892647853.png


 
Upvote 0
Top