-
Notifications
You must be signed in to change notification settings - Fork 685
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
NoSuchMethodError: No static method removeIf #923
Comments
Hmm do you know if the crashes occur on a specific Android version? We only use the method on API 24 (which has initial Java 8 support on Android without desugaring) and above, but we could increase that to work-around device-specific issues. It's likely mostly occurring on Samsung devices since they're the most common Android devices. EDIT: I ended up removing the use of |
This looks like it might be a desugaring bug of some kind unrelated to Coil. Your stack trace mentions |
Nice, thank you for the quick reaction! We will try set |
@colinrtwhite Do you have an expected date for the next Coil release that will contain the fix for this issue? |
@zsmb13 It should be out pretty soon, but I can't give an ETA. If you need the fix now, you should use the latest snapshot. Also I still think this is a local desugaring issue as we use |
@zsmb13 Actually |
Describe the bug
We use Coil indirectly via https://github.com/GetStream/stream-chat-android and we are seeing lots of crashes with that exception:
Since Stream could not help us with this so far, we are reaching out to you. We cannot reproduce the crash consistently, but for some users it happens quite often.
This looks like some Java 8 issue since this method is new in Java 8. We have enabled Java 8 compatibility in our project and Stream has it also in their SDK.
Excerpt from our build.gradle:
And from the Stream SDK: https://github.com/GetStream/stream-chat-android/blob/4.19.0/stream-chat-android-core/build.gradle#L18
So if you have any ideas what is happening here, we would really appreciate it. Thank you!
Logs/Screenshots
Version
1.2.1 and 1.3.2 (we tried different Stream SDK versions).
Seems to happen mainly on Samsung devices.
The text was updated successfully, but these errors were encountered: