Skip to content

Unable to use library with grpc-okhttp #47

@shayerov

Description

@shayerov

I'm trying to use this library for Android development. However, when using it together with grpc-okhttp I get the following error when trying to upload media bytes:
com.google.api.gax.rpc.ApiException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar!classes4.dex)

My dependencies :
api 'com.google.photos.library:google-photos-library-client:1.7.2'
api 'io.grpc:grpc-okhttp:1.50.2'

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