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

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

Closed
VitoFromEarth opened this issue Feb 6, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@VitoFromEarth
Copy link

VitoFromEarth commented Feb 6, 2023

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

@VitoFromEarth VitoFromEarth added the bug Something isn't working label Feb 6, 2023
@peyman-hakemi
Copy link

same issue, any solution?

@VitoFromEarth
Copy link
Author

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
Copy link

peyman-hakemi commented Feb 7, 2023

i replaced
retriever.release();
with

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

this worked to

@souvik-ghosh
Copy link
Owner

Duplicate of #76

@souvik-ghosh souvik-ghosh marked this as a duplicate of #76 Feb 7, 2023
@miguelangarano
Copy link

i replaced retriever.release(); with

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

this worked to

This works for me

@SibelcoMX
Copy link

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

@arminghm
Copy link

arminghm commented Sep 1, 2023

@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 [email protected]

or

yarn add [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants