-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support R8 full mode #979
Comments
Hi @workspace, This is the exception we fixed: Thanks for updating this issue with further information if this does not solve the problem. It would be of great help to us if you could also include some logs. |
Thank you for the quick fix. I wanted to attach a log, but it was difficult to provide a clear reference as the logs occurring in my app and the demo app are different. I have not yet been able to receive 0.4.4-SNAPSHOT, but I will check if the Snapshot has solved the problem and get back to you. |
Hey @workspace |
I was still experiencing issues, so I compared the stream-video-android project with my project and identified the exact cause. The cause is R8. From AGP 8.0, R8 operates in full mode by default. According to this commit in the stream-video-android project, R8 full mode was temporarily disabled during the update of the AGP version. If R8 full mode is enabled, the demo app crashes immediately upon launch, just like my project. Since AGP 8.0 adopts R8 full mode as the default, it's likely that customers using this library will face the same issue. I've somewhat resolved this issue by applying two modifications:
However, I haven't conducted a comprehensive review of all the libraries used by stream-video-android, so could you assist in reviewing them? I have submitted my changes as a PR #982 for suggestion. |
Can I rename this issue to 'Support R8 full mode', or should I create a new issue? |
I will update the issue and labels. |
#982 has been merged 🎉 This fix will be contained in the next stable release. Thank you for your contribution, @workspace! |
Describe the bug
App crashes when running a release build. I've encountered this issue in my app, and upon checking, the same problem occurs in the demo app as well.
SDK version
To Reproduce
Steps to reproduce the behavior:
developmentRelease
orproductionRelease
. (developmentNonMinifiedRelease
is fine)Expected behavior
App should run normally without crashing.
Device:
The text was updated successfully, but these errors were encountered: