Open siddharth-kt opened 2 years ago
Having same issue, anyone know of a fix?
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.
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 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 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();
}
Hi @shahen94
Current Behavior
Compilation error
LOG...
If i add jcenter() then another error occurs. LOG...
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