InstagramPhotoPicker-Android
InstagramPhotoPicker-Android copied to clipboard
Not compatible with Android version 9
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)
/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
Thank you! That fixed also my app and I mentioned you in my stackoverflow answer.