Skip to content

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

@soommy12

Description

@soommy12

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions