Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use library with grpc-okhttp #47

Open
shayerov opened this issue Nov 2, 2022 · 0 comments
Open

Unable to use library with grpc-okhttp #47

shayerov opened this issue Nov 2, 2022 · 0 comments

Comments

@shayerov
Copy link

shayerov commented Nov 2, 2022

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant