-
Notifications
You must be signed in to change notification settings - Fork 6k
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
can't find referenced class com.google.android.exoplayer2.text.ssa.SsaStyle$SsaAlignment on release #6771
Comments
I'm not able to reproduce this building a release/proguarded APK of the demo app at 2.11. Can you provide more detailed repro instructions, including information about how you're depending on the ExoPlayer library? |
Hello @icbaker and thanks for the help. I am upgrading from 2.10.4 -> 2.11.0. I did not have any issues creating signed APKs before, so those messages are new to me. I am only adding the ui and core to my project:
I have just tried enabling R8 instead of ProGuard, and I was able to create a signed APK without issues. Though, I favor ProGuard because it handles one aspect better. Note that I am only playing offline files on my app. Does the demo app use R8 or ProGuard? |
Thanks for the details - I'm able to reproduce by setting I actually see 4 warnings - the 2 you've mentioned here & 2 javax-related ones:
The javax ones should be suppressed in the same way we suppress the other compile-time annotation classes: ExoPlayer/library/core/proguard-rules.txt Line 61 in 76962d5
I'll send a change to add It's less obvious we want to be suppressing the a) Doesn't affect We're going to look into this in a bit more detail. In the short term, you should be able to get your app building again by adding both these suppressions to your own
|
Thank you so much for the solution and explanation @icbaker I have tried keeping the class originally but that did not help. I have thought about suppressing the warning, but I was afraid it would cause issues. I am not sure if I should be closing this issue or not, so I will leave that to you. |
I'll keep this open for now to track removing IntDef values that are defined inside their interfaces. |
This seems to work with R8 but interact badly with ProGuard. issue:#6771 PiperOrigin-RevId: 286215262
This seems to work with R8 but interact badly with ProGuard. issue:#6771 PiperOrigin-RevId: 286215262
[REQUIRED] Issue description
I cannot generate signed apk/bundle. Whenever I do it, I get the following messages on failure:
com.google.android.exoplayer2.text.ssa.SsaDecoder: can't find referenced class com.google.android.exoplayer2.text.ssa.SsaStyle$SsaAlignment
com.google.android.exoplayer2.text.ssa.SsaStyle$Overrides: can't find referenced class com.google.android.exoplayer2.text.ssa.SsaStyle$SsaAlignment
[REQUIRED] Reproduction steps
Attempt to generate a signed apk/bundle. I am using ProGuard.
[REQUIRED] Link to test content
[REQUIRED] A full bug report captured from the device
[REQUIRED] Version of ExoPlayer being used
Latest (v2.11.0).
[REQUIRED] Device(s) and version(s) of Android being used
The text was updated successfully, but these errors were encountered: