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

No static field INSTANCE error on Android #146

Closed
filippkowalski opened this issue Nov 7, 2017 · 3 comments
Closed

No static field INSTANCE error on Android #146

filippkowalski opened this issue Nov 7, 2017 · 3 comments
Milestone

Comments

@filippkowalski
Copy link

When I try to use library on Android I get following error :
java.lang.NoSuchFieldError: No 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:classes2.dex)
possible solution might be found here : https://stackoverflow.com/questions/27366430/getting-nosuchfielderror-instance-org-apache-http-message-basicheadervalueparser

@marvin-we marvin-we added this to the 0.4.3 milestone Nov 9, 2017
@marvin-we
Copy link
Owner

I'll do some tests with the official Google HTTP Client as an alternative (see https://mvnrepository.com/artifact/com.google.http-client/google-http-client/1.23.0)

marvin-we pushed a commit that referenced this issue Nov 9, 2017
@marvin-we
Copy link
Owner

Switching from Apache to the Google HTTP client was easier than expected and according to the documentation (see https://developers.google.com/api-client-library/java/google-http-java-client/android ) it should work on every system.. I will release a pre-release to give you the possibility to test this.

@marvin-we
Copy link
Owner

@filippkowalski confirmed via steemit.chat that 0.4.3-pre1 is working now - Thanks for all the effort you spend on this topic and good luck for your project!

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

No branches or pull requests

2 participants