souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
250 stars 105 forks source link

Hotfix CreateThumbnailModule.java:192 #85

Closed yevheniishabelnyk closed 1 year ago

yevheniishabelnyk commented 1 year ago

Hello! When I try to deploy the app, I am getting the bug with:

> Task :react-native-create-thumbnail:compileReleaseJavaWithJavac FAILED
/Users/runner/work/1/s/node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:192: error: unreported exception IOException; must be caught or declared to be thrown
        retriever.release();

I found the solution, we should to change line 192 with:

try {
  retriever.release();
} catch (IOException ex) {
  // handle the exception here
}

Could you do it ASAP, please, cause I can't deploy my app.

Thank you!

souvik-ghosh commented 1 year ago

@yevheniishabelnyk, Duplicate of https://github.com/souvik-ghosh/react-native-create-thumbnail/issues/76