-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Failed while trying to build the app, when dependency version changed to v6.4.2 #4014
Replies: 1 comment · 6 replies
-
Can you try this #4009 ? |
Beta Was this translation helpful? Give feedback.
All reactions
-
@KrzysztofMoch actually this was exactly what I have done before :) still its showing > Task :react-native-video:compileDebugJavaWithJavac FAILED
/home/chef/Desktop/projects/challenger/app/node_modules/react-native-video/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java:241: error: multiple case labels are not supported in -source 11
case 90, 270 -> {
^
(use -source 14 or higher to enable multiple case labels)
/home/chef/Desktop/projects/challenger/app/node_modules/react-native-video/android/src/main/java/com/brentvatne/exoplayer/ExoPlayerView.java:241: error: switch rules are not supported in -source 11
case 90, 270 -> {
^
(use -source 14 or higher to enable switch rules)
2 errors
> Task :react-native-gesture-handler:compileDebugKotlin
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/FlingGestureHandler.kt:25:26 Parameter 'event' is never used
> Task :react-native-screens:compileDebugKotlin
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt:83:22 'constructor GuardedRunnable(ReactContext!)' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStackFragment.kt:65:27 'setter for targetElevation: Float' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStackFragment.kt:128:27 'setter for targetElevation: Float' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt:86:34 'getter for systemWindowInsetTop: Int' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt:231:37 'setColorFilter(Int, PorterDuff.Mode): Unit' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt:63:22 'constructor GuardedRunnable(ReactContext!)' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt:108:22 'constructor GuardedRunnable(ReactContext!)' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt:135:47 'replaceSystemWindowInsets(Int, Int, Int, Int): WindowInsetsCompat' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt:136:51 'getter for systemWindowInsetLeft: Int' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt:138:51 'getter for systemWindowInsetRight: Int' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt:139:51 'getter for systemWindowInsetBottom: Int' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/SearchBarManager.kt:100:22 Parameter 'view' is never used
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/SearchBarManager.kt:100:43 Parameter 'placeholder' is never used
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/SearchBarView.kt:147:43 Parameter 'flag' is never used
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/events/HeaderHeightChangeEvent.kt:5:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/events/HeaderHeightChangeEvent.kt:10:5 'constructor Event<T : Event<(raw) Event<*>>!>(Int)' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/events/HeaderHeightChangeEvent.kt:17:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/events/HeaderHeightChangeEvent.kt:20:25 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt:11:42 Parameter 'width' is never used
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt:11:54 Parameter 'height' is never used
w: file:///home/chef/Desktop/projects/challenger/app/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt:11:67 Parameter 'headerHeight' is never used
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-video:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
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.6.2/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 10 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
BUILD FAILED in 4m 5s
712 actionable tasks: 701 executed, 11 up-to-date any idea, what is the problem? |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yeah... I will fix this - if this is very blocking for you, you can manually apply this patch - switch (format.rotationDegrees) {
+ if (format.rotationDegrees == 90 || format.rotationDegrees == 270) {
// update aspect ratio !
- case 90, 270 -> {
- layout.setVideoAspectRatio(format.width == 0 ? 1 : (format.height * format.pixelWidthHeightRatio) / format.width);
- }
- default -> {
- layout.setVideoAspectRatio(format.height == 0 ? 1 : (format.width * format.pixelWidthHeightRatio) / format.height);
- }
+ layout.setVideoAspectRatio(
+ format.width == 0 ? 1f : ((format.height * format.pixelWidthHeightRatio) / format.width)
+ );
+ } else {
+ layout.setVideoAspectRatio(
+ format.height == 0 ? 1f : ((format.width * format.pixelWidthHeightRatio) / format.height)
+ );
}
return;
} |
Beta Was this translation helpful? Give feedback.
All reactions
-
this works.... thanks :) |
Beta Was this translation helpful? Give feedback.
All reactions
-
since the above issue now resolved. after when I try to open the video I am getting
solved this issue in last versions, but still exists |
Beta Was this translation helpful? Give feedback.
All reactions
-
Raised an issue #4017 if anyone want to know what after, for now closing the discussion |
Beta Was this translation helpful? Give feedback.
-
Any idea on how to fix this
I am having java version 17
I thought is that the problem, I am not a big android developer, is there something I miss?
please help me
Beta Was this translation helpful? Give feedback.
All reactions