Android Question Unable to run the FirebaseAuth Example

toby

Active Member
Licensed User
I've tried to run the example app, as it is, attached to FirebaseAuth library thread. I followed the instructions precisely to the best of my knowledge, including
1. Ran SDK Manager and update all recommended including Firebase Auth
2. created Firebase project and app
3. Downloaded google-services.json

Note: I used the internal FirebaseAuth library 2.01 instead of the attached one.

App crashed at the following line
B4X:
auth.Initialize("auth")

Anyone knows why could be the problem?


*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Logger connected to: asus ASUS_Z012DC
--------- beginning of main
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
HWUI GL Pipeline
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (0) ***
PFP: 0x005ff087, ME: 0x005ff063
Initialized EGL, version 1.4
Swap behavior 2
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
After accept
*** Debugger waiting for connection (1) ***
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read(BufferedInputStream.java:267)
at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:191)
at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:186)
at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
at java.lang.Thread.run(Thread.java:764)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
HWUI GL Pipeline
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
PFP: 0x005ff087, ME: 0x005ff063
*** Debugger waiting for connection (0) ***
Initialized EGL, version 1.4
Swap behavior 2
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
After accept
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read(BufferedInputStream.java:267)
at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:191)
at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:186)
at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
at java.lang.Thread.run(Thread.java:764)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
HWUI GL Pipeline
After accept
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
PFP: 0x005ff087, ME: 0x005ff063
*** Debugger waiting for connection (0) ***
Initialized EGL, version 1.4
Swap behavior 2
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2034)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2068)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:387)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:764)
java.io.IOException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:267)
at java.net.AbstractPlainSocketImpl.shutdownInput(AbstractPlainSocketImpl.java:582)
at java.net.Socket.shutdownInput(Socket.java:1565)
at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:105)
at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
at java.lang.Thread.run(Thread.java:764)
Caused by: android.system.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
at libcore.io.Linux.shutdown(Native Method)
at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:176)
at java.net.PlainSocketImpl.socketShutdown(PlainSocketImpl.java:265)
... 5 more
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
HWUI GL Pipeline
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (0) ***
PFP: 0x005ff087, ME: 0x005ff063
Initialized EGL, version 1.4
Swap behavior 2
After accept
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read(BufferedInputStream.java:267)
at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:191)
at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:186)
at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
at java.lang.Thread.run(Thread.java:764)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
HWUI GL Pipeline
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (0) ***
PFP: 0x005ff087, ME: 0x005ff063
Initialized EGL, version 1.4
Swap behavior 2
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
After accept
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read(BufferedInputStream.java:267)
at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:191)
at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:186)
at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
at java.lang.Thread.run(Thread.java:764)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
HWUI GL Pipeline
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
PFP: 0x005ff087, ME: 0x005ff063
*** Debugger waiting for connection (0) ***
Initialized EGL, version 1.4
Swap behavior 2
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read(BufferedInputStream.java:267)
at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:191)
at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:186)
at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
at java.lang.Thread.run(Thread.java:764)
System.exit called, status: 0
VM exiting with result code 0, cleanup skipped.
Class com.google.firebase.FirebaseApp failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
Class androidx.collection.SimpleArrayMap failed lock verification and will run slower.
Class com.google.firebase.FirebaseApp$GlobalBackgroundStateListener failed lock verification and will run slower.
Class com.google.android.gms.common.api.internal.BackgroundDetector failed lock verification and will run slower.
Application info not found.
Could not retrieve metadata, returning empty list of registrars.
Class com.google.firebase.components.EventBus failed lock verification and will run slower.
Class com.google.firebase.components.Lazy failed lock verification and will run slower.
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = com.ddg.signinwithgoogle
Typeface getFontPathFlipFont - systemFont = default#default
Class anywheresoftware.b4a.BA failed lock verification and will run slower.
common created.
Starting remote logger. Port: 37736
After accept
HWUI GL Pipeline
QUALCOMM build : 8c8f5af, Ic7262d4df1
Build Date : 11/06/17
OpenGL ES Shader Compiler Version: EV031.20.00.04
Local Branch :
Remote Branch : quic/gfx-adreno.lnx.1.9.r3-rel
Remote Branch : NONE
Reconstruct Branch : NOTHING
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (0) ***
PFP: 0x005ff087, ME: 0x005ff063
Initialized EGL, version 1.4
Swap behavior 2
sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8953.so from the current namespace instead.
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Class com.google.firebase.auth.FirebaseAuth failed lock verification and will run slower.
Error occurred on line: 25 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.addAuthStateListener(com.google.firebase.auth.FirebaseAuth$AuthStateListener)' on a null object reference
at anywheresoftware.b4a.objects.FirebaseAuthWrapper.Initialize(FirebaseAuthWrapper.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:777)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:354)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at com.ddg.signinwithgoogle.main.afterFirstLayout(main.java:105)
at com.ddg.signinwithgoogle.main.access$000(main.java:17)
at com.ddg.signinwithgoogle.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:169)
at android.app.ActivityThread.main(ActivityThread.java:6578)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
java.net.SocketException: Socket closed
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.net.SocketInputStream.read(SocketInputStream.java:139)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:248)
at java.io.BufferedInputStream.read(BufferedInputStream.java:267)
at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:191)
at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:186)
at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
at java.lang.Thread.run(Thread.java:764)

TIA
 

Erel

Administrator
Staff member
Licensed User
Ran SDK Manager and update all recommended including Firebase Auth
No need to run the sdk manager all.

Download B4A 11.0 and download the two SDK components.
 
Upvote 0
Top