java-photoslibrary
java-photoslibrary copied to clipboard
Unable to use library with grpc-okhttp
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'