Hi, when executing the code fs.Initialize("Firestore",True), it generates the following unexpected error. I do not realize why it happens.
Version B4A 9.30.
main_setstate (B4A line: 225)
fs.Initialize("Firestore",True)
java.lang.NullPointerException: Firestore component is not present.
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:910)
at com.google.firebase.firestore.FirebaseFirestore.getInstance(com.google.firebase:firebase-firestore@@20.1.0:88)
at com.google.firebase.firestore.FirebaseFirestore.getInstance(com.google.firebase:firebase-firestore@@20.1.0:74)
at de.donmanfred.FirebaseFirestorewrapper.Initialize(FirebaseFirestorewrapper.java:43)
at com.apptravel.myapp.main._setstate(main.java:1614)
at com.apptravel.myapp.main$ResumableSub_Activity_Resume.resume(main.java:714)
at com.apptravel.myapp.main._activity_resume(main.java:689)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at com.apptravel.myapp.main.afterFirstLayout(main.java:110)
at com.apptravel.myapp.main.access$000(main.java:17)
at com.apptravel.myapp.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:819)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:210)
at android.app.ActivityThread.main(ActivityThread.java:5943)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:817)
Try other previous codes and it works well, in this case the difference is that add FireBase Storage, this can be a cause?
Version B4A 9.30.
main_setstate (B4A line: 225)
fs.Initialize("Firestore",True)
java.lang.NullPointerException: Firestore component is not present.
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:910)
at com.google.firebase.firestore.FirebaseFirestore.getInstance(com.google.firebase:firebase-firestore@@20.1.0:88)
at com.google.firebase.firestore.FirebaseFirestore.getInstance(com.google.firebase:firebase-firestore@@20.1.0:74)
at de.donmanfred.FirebaseFirestorewrapper.Initialize(FirebaseFirestorewrapper.java:43)
at com.apptravel.myapp.main._setstate(main.java:1614)
at com.apptravel.myapp.main$ResumableSub_Activity_Resume.resume(main.java:714)
at com.apptravel.myapp.main._activity_resume(main.java:689)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at com.apptravel.myapp.main.afterFirstLayout(main.java:110)
at com.apptravel.myapp.main.access$000(main.java:17)
at com.apptravel.myapp.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:819)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:210)
at android.app.ActivityThread.main(ActivityThread.java:5943)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:817)
Try other previous codes and it works well, in this case the difference is that add FireBase Storage, this can be a cause?