java-photoslibrary icon indicating copy to clipboard operation
java-photoslibrary copied to clipboard

Unable to use library with grpc-okhttp

Open shayerov opened this issue 2 years ago • 0 comments

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'

shayerov avatar Nov 02 '22 15:11 shayerov