Android Question [Firebase ML-Vision lib]:Running crash

ppgirl

Member
Licensed User
Hello DonManfred,

Could you get me a compiled APK file . I build the project , but it will crash in internal when start (Android 7 or Android 9 mobile).


Logger connected to: PM1LHMA780202845
--------- beginning of crash
--------- beginning of system
--------- beginning of main
Copying updated assets files (2)
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
onAuthStateChanged: com.google.firebase.auth.internal.zzk@1b233a4
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (activity_permissionresult)
running waiting messages (1)
Using Barcode Detector Processor
Error occurred on line: 75 (Main)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object com.google.firebase.ml.common.internal.zzd.get(java.lang.Object)' on a null object reference
at com.google.firebase.ml.common.internal.zzm.zza(com.google.firebase:firebase-ml-common@@20.0.1:24)
at com.google.android.gms.internal.firebase_ml.zzqb.<init>(com.google.firebase:firebase-ml-vision@@22.0.0:7)
at com.google.firebase.ml.vision.barcode.FirebaseVisionBarcodeDetector.<init>(com.google.firebase:firebase-ml-vision@@22.0.0:16)
at com.google.firebase.ml.vision.barcode.FirebaseVisionBarcodeDetector.zza(com.google.firebase:firebase-ml-vision@@22.0.0:13)
at com.google.firebase.ml.vision.FirebaseVision.getVisionBarcodeDetector(com.google.firebase:firebase-ml-vision@@22.0.0:23)
at com.google.firebase.samples.mlkit.barcodescanning.BarcodeScanningProcessor.<init>(BarcodeScanningProcessor.java:52)
at de.donmanfred.FirebaseDetectorwrapper.createCameraSource(FirebaseDetectorwrapper.java:479)
at de.donmanfred.FirebaseDetectorwrapper.Initialize(FirebaseDetectorwrapper.java:93)
at com.b4a.testml.main$ResumableSub_Activity_Create.resume(main.java:537)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resumeAsUserSub(DebugResumableSub.java:48)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
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 anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
at anywheresoftware.b4a.shell.DebugResumableSub$DelegatableResumableSub.resume(DebugResumableSub.java:43)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:250)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:137)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at anywheresoftware.b4a.BA.setActivityPaused(BA.java:442)
at com.b4a.testml.main$ResumeMessage.run(main.java:306)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
** Activity (main) Resume **

Attached Files:
 

Attachments

ppgirl

Member
Licensed User
Yes . SDK manager is updated to new AndroidX SDK . and "RuntimePermissions" library is updated to AndroidX by hand.
 
Top