here-aaa-java-sdk icon indicating copy to clipboard operation
here-aaa-java-sdk copied to clipboard

Issue with the Android SDK

Open deadpool9987 opened this issue 4 years ago • 1 comments

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

deadpool9987 avatar Jun 24 '21 20:06 deadpool9987

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();

kenmccracken avatar Jun 29 '21 22:06 kenmccracken