Skip to content

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. #447

Description

@laurentpellegrino

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'

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions