InstagramPhotoPicker-Android icon indicating copy to clipboard operation
InstagramPhotoPicker-Android copied to clipboard

Not compatible with Android version 9

Open tijot123 opened this issue 5 years ago • 2 comments

Caused by: java.lang.IncompatibleClassChangeError: Class 'org.apache.http.conn.ssl.SSLSocketFactory' does not implement interface 'org.apache.http.conn.scheme.SchemeSocketFactory' in call to 'java.net.Socket org.apache.http.conn.scheme.SchemeSocketFactory.createSocket(org.apache.http.params.HttpParams)' (declaration of 'org.apache.http.impl.conn.DefaultClientConnectionOperator' appears in /data/app/com.appbazooka.floatalbums-o9OfdDbF2pkWnWrED4UFkA==/split_lib_dependencies_apk.apk!classes2.dex)

tijot123 avatar Mar 04 '19 13:03 tijot123

/Important for android version 9 pie/ httpClient.getConnectionManager().getSchemeRegistry().register( new Scheme("https", SSLSocketFactory.getSocketFactory(), 443) );

add this code before HttpResponse response = httpclient.execute(request); in InstagramMediaRequest in line number 61 after try catch block starts

tijot123 avatar Mar 04 '19 13:03 tijot123

Thank you! That fixed also my app and I mentioned you in my stackoverflow answer.

giuliohome avatar May 01 '20 16:05 giuliohome