Using com.google.firebase:firebase-admin:6.14.0 in a simple app fetching a single document by ID in Firestore, I am getting the following runtime exception:
Caused by: java.lang.AbstractMethodError: Receiver class com.google.api.gax.grpc.InstantiatingGrpcChannelProvider does not define or inherit an implementation of the resolved method 'abstract com.google.api.gax.rpc.TransportChannelProvider withExecutor(java.util.concurrent.Executor)' of interface com.google.api.gax.rpc.TransportChannelProvider.
I authenticated using end-user credentials from Google Cloud SDK. There is no Firebase or Google dependency other than firebase-admin. My OS is Fedora 32.
It seems the problem comes from the version of gax-grpc that is retrieved by firebase-admin since forcing Gradle to use the latest version resolves the problem:
implementation 'com.google.api:gax-grpc:1.57.0'
Using
com.google.firebase:firebase-admin:6.14.0in a simple app fetching a single document by ID in Firestore, I am getting the following runtime exception:I authenticated using end-user credentials from Google Cloud SDK. There is no Firebase or Google dependency other than
firebase-admin. My OS is Fedora 32.It seems the problem comes from the version of
gax-grpcthat is retrieved byfirebase-adminsince forcing Gradle to use the latest version resolves the problem: