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

Cannot create Smartsheet - java.lang.NoSuchFieldError: No field INSTANCE #2

Open
soommy12 opened this issue Jun 17, 2018 · 0 comments

Comments

@soommy12
Copy link

Hello!
While following your example during Smartsheet initialization:

Smartsheet ss = SmartsheetFactory.createDefaultClient(accessToken);

I am getting this 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)

It seems that library is using the older version of HttpClient. I've met this StackOverflow question where problem is the same but still not solved. Maybe description there will be more helpful.

Can you please give me the solution or any workaround? Thanks!

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