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

Android issue: HttpClient was deprecated in API Level 22 and removed in API Level 23 #69

Closed
1 task done
basst85 opened this issue Jan 17, 2018 · 4 comments
Closed
1 task done

Comments

@basst85
Copy link

basst85 commented Jan 17, 2018

The dependency "org.apache.httpcomponents.httpclient" is removed from API level 23+
Maybe a other HttpClient can be used, like "OkHttp"?

Steps to reproduce:

  1. Use SDK in app on Android 8.0

What should happen:

What happens:

I get this error when executing ApiContext.create:

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:classes2.dex) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:146) at com.bunq.sdk.http.ApiClient.buildHttpClient(ApiClient.java:120) at com.bunq.sdk.http.ApiClient.<init>(ApiClient.java:113) at com.bunq.sdk.model.core.Installation.create(Installation.java:43) at com.bunq.sdk.context.ApiContext.initializeInstallation(ApiContext.java:173) at com.bunq.sdk.context.ApiContext.initialize(ApiContext.java:163) at com.bunq.sdk.context.ApiContext.create(ApiContext.java:127) at com.bunq.sdk.context.ApiContext.create(ApiContext.java:109) at com.bunq.sdk.context.ApiContext.create(ApiContext.java:101)

Traceback

SDK version and environment

Response id

  • Response id:

Extra info:

@OGKevin
Copy link
Contributor

OGKevin commented Jan 18, 2018

Thanks for reporting.

If thats the case, than this is related to #25 and should be fixed in the 0.12.5 release!

Duplicate of #25

@basst85
Copy link
Author

basst85 commented Jan 18, 2018

You're right, this issue is a bit a duplicate of #25. Sorry for that :-)

@OGKevin OGKevin closed this as completed Jan 18, 2018
@OGKevin
Copy link
Contributor

OGKevin commented Jan 18, 2018

@basst85 no problem at all 👍 more reason to release 0.12.5!

@OGKevin OGKevin reopened this Jan 18, 2018
@OGKevin
Copy link
Contributor

OGKevin commented May 3, 2018

Closing due to #25

@OGKevin OGKevin closed this as completed May 3, 2018
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

2 participants