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-video-processing:compileDebugJavaWithJavac FAILED #399

Open
rajyuva1000 opened this issue Sep 19, 2023 · 1 comment
Open

Comments

@rajyuva1000
Copy link

rajyuva1000 commented Sep 19, 2023

Anyone can help on this. i am using reactnative 0.72.4 version

\node_modules\react-native-video-processing\android\src\main\java\com\shahenlibrary\Trimmer\Trimmer.java:377: error: unreported exception IOException; must be caught or declared to be thrown
retriever.release();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: ....\node_modules\react-native-video-processing\android\src\main\java\com\shahenlibrary\VideoPlayer\VideoPlayerViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

@ahardy42
Copy link

ahardy42 commented Oct 13, 2023

this is something i've run into with upgrading to sdk33. if you use patch-package you can fix by modifying Trimmer.java like so:

replace

retriever.release();

with

try {
        retriever.release();
} catch (Exception e) {
        // TODO: handle exception
}

then run npx patch-package react-native-video-processing

I'm not a Java dev so i have no idea what to do with the exception but hey it works.

there is a PR in here to fix this but I think this is a dead repo so...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants