Skip to content
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

Fix: Unreported IOException on MediaMetadataRetriever.release() with target SDK 33 (Android) #398

Merged

Conversation

denisbevilacqua
Copy link
Contributor

@denisbevilacqua denisbevilacqua commented Aug 29, 2023

I've updated the target SDK version to 33 in my React Native application. However, while building, Gradle raises concerns regarding an unreported IOException stemming from the execution of MediaMetadataRetriever.release().

The exception was added in API level 33.

I believe that incorporating a try-catch block would be the most prudent approach in this situation. This way, if an exception is thrown during the release process for any unforeseen reason (such as if the system has already initiated the release), the application will avoid crashing. I would like to mention that this approach has been tested, and now the app compiles successfully.

Closes #372

@denisbevilacqua denisbevilacqua changed the title fix(android): Unreported IOException on MediaMetadataRetriever.release() with target SDK 33 Fix: Unreported IOException on MediaMetadataRetriever.release() with target SDK 33 (Android) Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants