[GH-ISSUE #11] App gets stuck at player.waitReady() on Android 6 #9

Closed
opened 2026-02-28 14:23:59 +03:00 by kerem · 3 comments
Owner

Originally created by @devgianlu on GitHub (May 5, 2021).
Original GitHub issue: https://github.com/devgianlu/librespot-android/issues/11

It seems that the player gets stuck here:
github.com/devgianlu/librespot-android@3278d3db61/app/src/main/java/xyz/gianlu/librespot/android/MainActivity.java (L184)

Internally librespot-java uses a CompletableFuture which may not be supported on Android 6, even with desugaring.

Originally created by @devgianlu on GitHub (May 5, 2021). Original GitHub issue: https://github.com/devgianlu/librespot-android/issues/11 It seems that the player gets stuck here: https://github.com/devgianlu/librespot-android/blob/3278d3db61f9f2b5e1600dbf53d1737212fc049a/app/src/main/java/xyz/gianlu/librespot/android/MainActivity.java#L184 Internally librespot-java uses a `CompletableFuture` which may not be supported on Android 6, even with desugaring.
kerem 2026-02-28 14:23:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@funtax commented on GitHub (May 5, 2021):

Hmmm, this might be an endless game. But maybe it's simple to solve? As said, i don't know what's worth the effort and what not.

https://github.com/SgtSilvio/android-retrofix

<!-- gh-comment-id:833003277 --> @funtax commented on GitHub (May 5, 2021): Hmmm, this might be an endless game. But maybe it's simple to solve? As said, i don't know what's worth the effort and what not. https://github.com/SgtSilvio/android-retrofix
Author
Owner

@devgianlu commented on GitHub (May 5, 2021):

I could also write an hackish piece of code that checks if the player is ready in a loop, but I think your solution would be better because the same issue could appear in other parts of the code.

<!-- gh-comment-id:833006368 --> @devgianlu commented on GitHub (May 5, 2021): I could also write an hackish piece of code that checks if the player is ready in a loop, but I think your solution would be better because the same issue could appear in other parts of the code.
Author
Owner

@mitschwimmer commented on GitHub (May 12, 2021):

I would rather shy away from using retrofix. It is too hacky for my taste. I have this nagging thought of "why is Google not backporting completeable futures and the likes?" -there might be subtleties not easy to get right. Android 7 support is already great from my point of view.

<!-- gh-comment-id:839492638 --> @mitschwimmer commented on GitHub (May 12, 2021): I would rather shy away from using retrofix. It is too hacky for my taste. I have this nagging thought of "why is Google not backporting completeable futures and the likes?" -there might be subtleties not easy to get right. Android 7 support is already great from my point of view.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-android#9
No description provided.