java.lang.NoSuchMethodError: No static method getDefaultHostnameVerifier()Ljavax/net/ssl/HostnameVerifier; in class Lorg/apache/http/conn/ssl/SSLConnectionSocketFactory; or its super classes (declaration of 'org.apache.http.conn.ssl.SSLConnectionSocketFactory' appears in /data/data/com.penrillian.mastercardsdkspike/files/instant-run/dex/slice-httpclient-android-4.3.3_0747e14fe297704af7c1867b65dc0798c1c7dd59-classes.dex)

Stack Overflow | barry | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using the MasterCard Java sdk in an Android app

    Stack Overflow | 6 months ago | barry
    java.lang.NoSuchMethodError: No static method getDefaultHostnameVerifier()Ljavax/net/ssl/HostnameVerifier; in class Lorg/apache/http/conn/ssl/SSLConnectionSocketFactory; or its super classes (declaration of 'org.apache.http.conn.ssl.SSLConnectionSocketFactory' appears in /data/data/com.penrillian.mastercardsdkspike/files/instant-run/dex/slice-httpclient-android-4.3.3_0747e14fe297704af7c1867b65dc0798c1c7dd59-classes.dex)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No static method getDefaultHostnameVerifier()Ljavax/net/ssl/HostnameVerifier; in class Lorg/apache/http/conn/ssl/SSLConnectionSocketFactory; or its super classes (declaration of 'org.apache.http.conn.ssl.SSLConnectionSocketFactory' appears in /data/data/com.penrillian.mastercardsdkspike/files/instant-run/dex/slice-httpclient-android-4.3.3_0747e14fe297704af7c1867b65dc0798c1c7dd59-classes.dex)

      at com.mastercard.api.core.ApiController.createHttpClient()
    2. com.mastercard.api
      ApiController.createHttpClient
      1. com.mastercard.api.core.ApiController.createHttpClient(ApiController.java:488)
      1 frame