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

can't install it on RN-0.69 #371

Open
siddharth-kt opened this issue Sep 5, 2022 · 6 comments
Open

can't install it on RN-0.69 #371

siddharth-kt opened this issue Sep 5, 2022 · 6 comments

Comments

@siddharth-kt
Copy link

Hi @shahen94

Current Behavior

Compilation error

LOG...

  • What went wrong:
    Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find com.yqritc:android-scalablevideoview:1.0.4.
Required by:
project :app > project :react-native-video-processing

If i add jcenter()
then another error occurs.
LOG...

Task :react-native-video-processing:compileDebugJavaWithJavac

Task :react-native-video-processing:compileDebugJavaWithJavac FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
608 actionable tasks: 24 executed, 584 up-to-date
C:...\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: C:...\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

FAILURE: Build failed with an exception.

Expected Behavior

It should compile successfully.

Your Environment

software version
react-native-video-processing ^2.0.0
react-native 0.69.5
node v14.17.0
@jamesdunay
Copy link

Having same issue, anyone know of a fix?

@Parkjunwu
Copy link

Parkjunwu commented Nov 2, 2022

Same issue on android with react-native 0.70.1 and 0.70.4.

Could not determine the dependencies of task ':app:processDebugResources'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find com.yqritc:android-scalablevideoview:1.0.4.
Searched in the following locations:
- file:/my-repository/node_modules/react-native/android/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/my-repository/node_modules/jsc-android/dist/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://repo.maven.apache.org/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://dl.google.com/dl/android/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://www.jitpack.io/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
Required by:
project :app > project :react-native-video-processing

On ios it works well.
Only android doesn't work.

@swadique
Copy link

swadique commented Dec 5, 2022

Solution:
Replace all retriever.release(); in react-native-video-processing/android/src/main/java/com/shahenlibrary/Trimmer/Trimmer.java with

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

@peyman-hakemi
Copy link

@swadique
any solution on this?

im getting this error when I replaceed all retriever.release();

node_modules\react-native-video-processing\android\src\main\java\com\shahenlibrary\Trimmer\Trimmer.java:237: error: exception IOException is never thrown in body of corresponding try statement
} catch(IOException e) {
^

@ahardy42
Copy link

ahardy42 commented Mar 10, 2023

@peyman-hakemi if you're still having that issue, I was as well and although I don't know what I'm doing with Java... this seems to have fixed the compile issue:

try {
    retriever.release();
} catch (Exception e) {
    e.printStackTrace();
}

Enieste added a commit to Enieste/react-native-video-processing that referenced this issue Apr 22, 2023
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

7 participants
@jamesdunay @swadique @ahardy42 @peyman-hakemi @siddharth-kt @Parkjunwu and others