Here are the crash logs -
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: com.offpay.app, PID: 8332
AndroidRuntime: java.lang.RuntimeException: Unable to create application com.offpay.app.OffPayApplication
AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8349)
AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleBindApplication(ActivityThread.java:0)
AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2765)
AndroidRuntime: at android.os.Handler.dispatchMessageImpl(Handler.java:142)
AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:125)
AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:296)
AndroidRuntime: at android.os.Looper.loop(Looper.java:397)
AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9564)
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:939)
AndroidRuntime: Caused by: java.lang.IllegalStateException: MlKitContext has not been initialized
AndroidRuntime: at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.3.0:2)
AndroidRuntime: at com.google.mlkit.common.sdkinternal.MlKitContext.getInstance(com.google.mlkit:common@@18.11.0:1)
AndroidRuntime: at com.google.mlkit.vision.barcode.BarcodeScanning.getClient(com.google.android.gms:play-services-mlkit-barcode-scanning@@18.3.1:3)
AndroidRuntime: at com.offpay.app.platform.QrScannerManager.(QrScannerManager.kt:40)
AndroidRuntime: at com.offpay.app.OffPayApplication.onCreate(OffPayApplication.kt:72)
AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1405)
AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8344)
AndroidRuntime: ... 10 more
Here are the crash logs -
AndroidRuntime: FATAL EXCEPTION: main
AndroidRuntime: Process: com.offpay.app, PID: 8332
AndroidRuntime: java.lang.RuntimeException: Unable to create application com.offpay.app.OffPayApplication
AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8349)
AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleBindApplication(ActivityThread.java:0)
AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2765)
AndroidRuntime: at android.os.Handler.dispatchMessageImpl(Handler.java:142)
AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:125)
AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:296)
AndroidRuntime: at android.os.Looper.loop(Looper.java:397)
AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9564)
AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:939)
AndroidRuntime: Caused by: java.lang.IllegalStateException: MlKitContext has not been initialized
AndroidRuntime: at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@18.3.0:2)
AndroidRuntime: at com.google.mlkit.common.sdkinternal.MlKitContext.getInstance(com.google.mlkit:common@@18.11.0:1)
AndroidRuntime: at com.google.mlkit.vision.barcode.BarcodeScanning.getClient(com.google.android.gms:play-services-mlkit-barcode-scanning@@18.3.1:3)
AndroidRuntime: at com.offpay.app.platform.QrScannerManager.(QrScannerManager.kt:40)
AndroidRuntime: at com.offpay.app.OffPayApplication.onCreate(OffPayApplication.kt:72)
AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1405)
AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:8344)
AndroidRuntime: ... 10 more