b2-sdk-java icon indicating copy to clipboard operation
b2-sdk-java copied to clipboard

problem with httpcomponents in Android

Open Psijic opened this issue 2 years ago • 1 comments

All is ok with Kotlin server, but get an error with Android:

java.lang.NoSuchMethodError: No static method getUserAgent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/String; in class Lorg/apache/http/util/VersionInfo; or its super classes (declaration of 'org.apache.http.util.VersionInfo' appears in /system/framework/org.apache.http.legacy.jar)
                   at com.backblaze.b2.client.webApiHttpClient.HttpClientFactoryImpl.<clinit>(HttpClientFactoryImpl.java:52)

Looks like there is need to update org.apache.httpcomponents dependencies

Psijic avatar Jul 10 '23 19:07 Psijic

same error ... did you find any solution?

midou221 avatar Aug 21 '24 09:08 midou221