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

Issue with the Android SDK #93

Open
deadpool9987 opened this issue Jun 24, 2021 · 1 comment
Open

Issue with the Android SDK #93

deadpool9987 opened this issue Jun 24, 2021 · 1 comment

Comments

@deadpool9987
Copy link

Hi

I was using AAA SDK to get the access token but I still can't get it. I get a crash saying the following error

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!classes4.dex)

According to this Android has deprecated the Apache module since API level 22 so any workaround for this or anything

The tool used
Android Studio 4.1.1
Language Used Java

@kenmccracken
Copy link
Contributor

Are you trying to build, or is this a runtime error?
You might be able to select an alternate provider via

HereAccessTokenProvider.builder().setHttpProvider(JavaHttpProvider.builder().build()).build();

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