Android Question Issue with Firebase Phone Number Authentication Library in B4A 13.40 Beta

scsjc

Well-Known Member
Licensed User
Longtime User
Hi everyone,
I'm currently testing B4A 13.40 Beta and I've encountered an issue using the Firebase Phone Number Authentication library:
https://www.b4x.com/android/forum/threads/firebase-phone-number-authentication.114218/

The authentication does not seem to work properly. Has anyone else experienced the same issue with this library in the latest beta version?
Thanks in advance!


java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/concurrent/DelegatingScheduledFuture;
at com.google.firebase.concurrent.DelegatingScheduledExecutorService.schedule(DelegatingScheduledExecutorService.java:109)
at com.google.android.gms.internal.firebase-auth-api.zzafu.zza(com.google.firebase:firebase-auth@@23.2.1:106)
at com.google.android.gms.internal.firebase-auth-api.zzaef.zza(com.google.firebase:firebase-auth@@23.2.1:148)
at com.google.android.gms.internal.firebase-auth-api.zzaee.zza(com.google.firebase:firebase-auth@@23.2.1:9)
at com.google.android.gms.internal.firebase-auth-api.zzafj.run(com.google.firebase:firebase-auth@@23.2.1:3)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0$com-google-firebase-concurrent-CustomThreadFactory(CustomThreadFactory.java:47)
at com.google.firebase.concurrent.CustomThreadFactory$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.concurrent.DelegatingScheduledFuture
... 10 more

1752490882767.png




Fatal Exception: java.lang.NoClassDefFoundError
Failed resolution of: Lcom/google/firebase/concurrent/DelegatingScheduledFuture;

com.google.firebase.concurrent.DelegatingScheduledExecutorService.schedule (DelegatingScheduledExecutorService.java:109)
com.google.android.gms.internal.firebase-auth-api.zzafu.zza (com.google.firebase:firebase-auth@@23.2.1:106)
com.google.android.gms.internal.firebase-auth-api.zzaef.zza (com.google.firebase:firebase-auth@@23.2.1:148)
com.google.android.gms.internal.firebase-auth-api.zzaee.zza (com.google.firebase:firebase-auth@@23.2.1:9)
com.google.android.gms.internal.firebase-auth-api.zzafj.run (com.google.firebase:firebase-auth@@23.2.1:3)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0$com-google-firebase-concurrent-CustomThreadFactory (CustomThreadFactory.java:47)
com.google.firebase.concurrent.CustomThreadFactory$$ExternalSyntheticLambda0.run (D8$$SyntheticClass)
java.lang.Thread.run (Thread.java:1012)

Caused by java.lang.ClassNotFoundException
com.google.firebase.concurrent.DelegatingScheduledFuture

com.google.firebase.concurrent.DelegatingScheduledExecutorService.schedule (DelegatingScheduledExecutorService.java:109)
com.google.android.gms.internal.firebase-auth-api.zzafu.zza (com.google.firebase:firebase-auth@@23.2.1:106)
com.google.android.gms.internal.firebase-auth-api.zzaef.zza (com.google.firebase:firebase-auth@@23.2.1:148)
com.google.android.gms.internal.firebase-auth-api.zzaee.zza (com.google.firebase:firebase-auth@@23.2.1:9)
com.google.android.gms.internal.firebase-auth-api.zzafj.run (com.google.firebase:firebase-auth@@23.2.1:3)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0$com-google-firebase-concurrent-CustomThreadFactory (CustomThreadFactory.java:47)
com.google.firebase.concurrent.CustomThreadFactory$$ExternalSyntheticLambda0.run (D8$$SyntheticClass)
java.lang.Thread.run (Thread.java:1012)





1752489692783.png
 
Last edited:

asubias

Member
Licensed User
Longtime User
I'm facing the same issue. I've installed all the new required resources with B4A 13.40
B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/concurrent/DelegatingScheduledFuture;
    at com.google.firebase.concurrent.DelegatingScheduledExecutorService.schedule(DelegatingScheduledExecutorService.java:109)
    at com.google.android.gms.internal.firebase-auth-api.zzafu.zza(com.google.firebase:firebase-auth@@23.2.1:106)
    at com.google.android.gms.internal.firebase-auth-api.zzaef.zza(com.google.firebase:firebase-auth@@23.2.1:148)
    at com.google.android.gms.internal.firebase-auth-api.zzaee.zza(com.google.firebase:firebase-auth@@23.2.1:9)
    at com.google.android.gms.internal.firebase-auth-api.zzafj.run(com.google.firebase:firebase-auth@@23.2.1:3)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
    at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0$com-google-firebase-concurrent-CustomThreadFactory(CustomThreadFactory.java:47)
    at com.google.firebase.concurrent.CustomThreadFactory$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
    at java.lang.Thread.run(Thread.java:1119)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.concurrent.DelegatingScheduledFuture
    ... 10 more
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Hi Asubias,
I’ve already spoken with Enrico Fuoti, the author of the library. He told me he will review it and adapt it to work with B4A 13.40.

So for now we just need to wait for his update.




I'm facing the same issue. I've installed all the new required resources with B4A 13.40
B4X:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/concurrent/DelegatingScheduledFuture;
    at com.google.firebase.concurrent.DelegatingScheduledExecutorService.schedule(DelegatingScheduledExecutorService.java:109)
    at com.google.android.gms.internal.firebase-auth-api.zzafu.zza(com.google.firebase:firebase-auth@@23.2.1:106)
    at com.google.android.gms.internal.firebase-auth-api.zzaef.zza(com.google.firebase:firebase-auth@@23.2.1:148)
    at com.google.android.gms.internal.firebase-auth-api.zzaee.zza(com.google.firebase:firebase-auth@@23.2.1:9)
    at com.google.android.gms.internal.firebase-auth-api.zzafj.run(com.google.firebase:firebase-auth@@23.2.1:3)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
    at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0$com-google-firebase-concurrent-CustomThreadFactory(CustomThreadFactory.java:47)
    at com.google.firebase.concurrent.CustomThreadFactory$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
    at java.lang.Thread.run(Thread.java:1119)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.concurrent.DelegatingScheduledFuture
    ... 10 more
 
Upvote 0

asubias

Member
Licensed User
Longtime User
Hi Asubias,
I’ve already spoken with Enrico Fuoti, the author of the library. He told me he will review it and adapt it to work with B4A 13.40.

So for now we just need to wait for his update.
Thank you scsjc.

I'm using another library https://www.b4x.com/android/forum/threads/firebase-ui-auth-a-new-dimension-in-authentication.87580 so as both of them are crashing at the same point I guessed that the issue was with some new dependencies added in latest version. I had similar issues in the past and Erel fixed it updating the resources.

Erel, can you confirm if the only solution is to make a new version of the libraries?
 
Upvote 0
Top