Closed anirudh-antino closed 1 year ago
There is a catch already in the parent function just a throws IOException
would suffice.
I install v0.16.3 but still got this problem
This is the same https://github.com/react-native-cameraroll/react-native-cameraroll/issues/402
Set the compile/target SDK to version 33 (Android 13) to recreate the error.
Thanks!
node_modules/react-native-create-thumbnail/android/src/main/java/com/createthumbnail/CreateThumbnailModule.java:194: error: exception IOException is never thrown in body of corresponding try statement } catch(IOException e) { ^
try { retriever.release(); } catch(IOException e) { <------- here e.printStackTrace(); }
The problem with adding this code is that the library won't work on Android version < 13 anymore. So we planned to support android 13 from v2.0.0 onwards. Currently, it's available as a pre-release v2.0.0-rc.2
.
UPDATE: v2.0.0 has been released with the fix