kaaes / spotify-web-api-android

A wrapper for Spotify Web API. It uses Retrofit to create Java interfaces from API endpoints
http://kaaes.github.io/spotify-web-api-android
MIT License
379 stars 139 forks source link

api.GetService (cannot resolve method) #78

Closed SayChunKim closed 9 years ago

SayChunKim commented 9 years ago

Log output D/Album failure﹕ retrofit.RetrofitError: 401 Unauthorized

api.GetService(); cannot resolved

kaaes commented 9 years ago

@SayChunKim I'm afraid I don't understand what your issue is. Could you be more specific?

bkach commented 9 years ago

I think @SayChunKim is trying to say that when trying to initialize the SpotifyService:

SpotifyService spotify = api.getService();

The getService method can't be resolved - even after importing

kaaes.spotify.webapi.android.SpotifyService.

The most likely culprit is if there is a namespace issue. Like naming another class SpotifyAPI and getting the references mixed up. Albiet - this feels a bit more like a SO question...

kaaes commented 9 years ago

It's unclear what this issue is about so I'm going to close it. Please feel free to open a new one if needed

SayChunKim commented 9 years ago

Sorry for late reply:

The issue was caused by old .jar file in download page for the wrapper. Managed to resolve it when build new one via gradlew.