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

> Task :react-native-create-thumbnail:compileDebugJavaWithJavac FAILED #87

Closed VitoFromEarth closed 1 year ago

VitoFromEarth commented 1 year ago

Describe the bug On building react native application with version 0.71 i have this issue

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(); 

To Reproduce Steps to reproduce the behavior:

  1. Just try to build debug version

Version react-native-create-thumbnail 1.6.4

Expected Results Build without issues

There is nothing specific regarding graddle stuff. Tried with clean project

peyman-hakemi commented 1 year ago

same issue, any solution?

VitoFromEarth commented 1 year ago

same issue, any solution?

For test I have wrapped CreateThumbnailModule.java:192 with try catch and I could continue building the app. So I suppose that author of the package should do the same and issue will be gone

peyman-hakemi commented 1 year ago

i replaced retriever.release(); with

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

this worked to

souvik-ghosh commented 1 year ago

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

miguelangarano commented 1 year ago

i replaced retriever.release(); with

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

this worked to

This works for me

SibelcoMX commented 1 year ago

Any idea when a new version will be available on npm?

arminghm commented 1 year ago

@SibelcoMX you can use version v2.0.0-rc.2 using npm, bear in mind that it is a pre-release version

using npm npm i react-native-create-thumbnail@2.0.0-rc.2

or

yarn add react-native-create-thumbnail@2.0.0-rc.2