react-native-video-processing icon indicating copy to clipboard operation
react-native-video-processing copied to clipboard

can't install it on RN-0.69

Open siddharth-kt opened this issue 3 years ago • 6 comments

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

siddharth-kt avatar Sep 05 '22 05:09 siddharth-kt

Having same issue, anyone know of a fix?

jamesdunay avatar Oct 24 '22 17:10 jamesdunay

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.

Parkjunwu avatar Nov 02 '22 22:11 Parkjunwu

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
}

swadique avatar Dec 05 '22 17:12 swadique

@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) { ^

peyman-hakemi avatar Feb 07 '23 15:02 peyman-hakemi

@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();
}

ahardy42 avatar Mar 10 '23 15:03 ahardy42