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

OneCloud fails on Android 9 #103

Closed
mvysny opened this issue May 7, 2019 · 3 comments
Closed

OneCloud fails on Android 9 #103

mvysny opened this issue May 7, 2019 · 3 comments
Assignees
Labels

Comments

@mvysny
Copy link
Owner

mvysny commented May 7, 2019

Fatal Exception: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/impl/client/DefaultHttpClient;
       at com.microsoft.services.msa.LiveAuthClient.<init>(LiveAuthClient.java:253)
       at com.microsoft.services.msa.LiveAuthClient.<init>(LiveAuthClient.java:318)
       at com.onedrive.sdk.authentication.MSAAuthenticator.init(MSAAuthenticator.java:143)
       at com.onedrive.sdk.authentication.DisambiguationAuthenticator.init(DisambiguationAuthenticator.java:129)
       at com.onedrive.sdk.extensions.OneDriveClient$Builder.loginAndBuildClient(OneDriveClient.java:163)
       at com.onedrive.sdk.extensions.OneDriveClient$Builder$1.run(OneDriveClient.java:147)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:764)
@mvysny mvysny self-assigned this May 7, 2019
@mvysny mvysny added the bug label May 7, 2019
@mvysny
Copy link
Owner Author

mvysny commented May 7, 2019

Reported as bug in OneCloud client library: OneDrive/onedrive-sdk-android#150

@mvysny
Copy link
Owner Author

mvysny commented May 7, 2019

Workarounds:

  • Adding compile 'org.apache.httpcomponents:httpclient:4.5.8' leads to 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' as in https://stackoverflow.com/questions/54414287/using-org-apache-http-legacy-in-android-9/54414655
  • Adding <uses-library android:name="org.apache.http.legacy" android:required="false"/> works!

@mvysny
Copy link
Owner Author

mvysny commented May 7, 2019

Fixed in PhotoCloud 1.13.8

@mvysny mvysny closed this as completed May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant