Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

SpeechToText API keeps crashing Firebase firestore due to protobuf-lite conflict. #95

Open
tiancaidao opened this issue Mar 16, 2019 · 0 comments

Comments

@tiancaidao
Copy link

Cannot use the speech to text api and firestore together, anyone succeed?

'com.google.cloud:google-cloud-speech:0.83.0-beta with protobuf-java
com.google.firebase:firebase-firestore:17.1.1 with protobuf-lite

I have to exclude protobuf lite in firestore, but firestore keeps crashing and give strange error.

here's error, but actually the exception does not make any sense, I'm using Firestore in the correct way, since it works if I remove Speech to Text API.

2019-03-16 18:39:22.796 19897-19897/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.xxx.vm, PID: 19897
java.lang.ExceptionInInitializerError
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
at android.support.v4.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:43)
at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2869)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3086)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1816)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
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)
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.xxx.vm. Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@16.0.2:240)
at com.google.firebase.auth.FirebaseAuth.getInstance(Unknown Source:1)
at com.xxx.vm.ListSwipeableWithButton.(ListSwipeableWithButton.kt:50)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant