-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
java.lang.NoClassDefFoundError #120
Comments
I'll look into this. Are you using Android? You may use kaaes/spotify-web-api-android instead. |
Oh yes I am. I've tried that api as well, but I was having a different issue with that one. I actually thought this one was for android as well. If the issue has no easy fix, I'll look into kaaes' wrapper again |
Could you please give me an exact explanation on how you've set up your project? Tools, files, ... |
Sure For the virtual device I use the Pixel XL with api 24 |
Actually I forgot to mention I'm also using Spotify's android sdk for authentication |
Have you tried using the new version 2.0.0-RC1 of this project? Does the same problem still occur? |
Ok, I've narrowed down the issue. Sadly, this cannot be fixed. Other people call this issue on which I must fully agree. It boils down to Android's included, but very very outdated and thus incompatible version of the httpclient dependency this project relies on too (even v2). There are efforts making usage of the current dependency versions possible, but this would mean that we'd need to include a different package and not the original. As far as I can see this would make no sense for this project as there are others (like kaaes') that are specifically made for Android. Further explanation: HttpClient for Android Sorry for the inconvenience, I'll change the README accordingly. Good luck with your project! |
Okay I understand! Thank you for all your effort and I will try to make the best out of my project! |
I seem to be having a problem with using the api. I've made a little program for testing the capabilities of the api, but after trying to build a new instance of the api
Api api = Api.builder().accessToken(oauthToken).clientId(CLIENT_ID).redirectURI(UIR).build();
the following error is given:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/impl/conn/PoolingHttpClientConnectionManager;
Full error log: https://pastebin.com/N9ihEaJt
I've looked online for solutions, but I can't seem to find any fixes that work. Has anyone got any clue for how to fix this?
Dependencies:
The text was updated successfully, but these errors were encountered: