Skip to content

Plugin failing to initialize with default firebase error at TextDetector.detectText #15

@bot101

Description

@bot101

Android Studio Logcat error message:

E/Capacitor/Plugin: Default FirebaseApp is not initialized in this process io.ionic.starter. Make sure to call FirebaseApp.initializeApp(Context) first.
java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process io.ionic.starter. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@19.3.0:184)
at com.google.firebase.ml.vision.FirebaseVision.getInstance(com.google.firebase:firebase-ml-vision@@24.0.1:1)
at com.bendyworks.capML.TextDetector.detectText(TextDetector.kt:23)
at com.bendyworks.capML.CapML.detectText(CapML.java:47)
at java.lang.reflect.Method.invoke(Native Method)
at com.getcapacitor.PluginHandle.invoke(PluginHandle.java:99)
at com.getcapacitor.Bridge$1.run(Bridge.java:521)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)

CapML version is ^1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions