souvik-ghosh / react-native-create-thumbnail

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

Execution failed for task ':react-native-create-thumbnail:compileDebugJavaWithJavac' #75

Closed deflexable closed 1 year ago

deflexable commented 1 year ago

/Users/macHome/Documents/codes/heavenya/mobile/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();

This error happens when i change compileSdkVersion and targetSdkVersion from 31 to 33

deflexable commented 1 year ago

i changed it because another package requires compileSdkVersion of 33

deflexable commented 1 year ago

changing it to this works

        try {
            retriever.release();
        } catch (IOException e) {
            e.printStackTrace();
        }
souvik-ghosh commented 1 year ago

@deflexable, Have you searched the previous issues? This was already answered. You need to use v2.0.0-rc.2 if you're on SDK v33.