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

Error compiling library version 7.40.1 #7911

Closed
1 task done
edoardocarpentiero opened this issue Sep 9, 2024 · 2 comments
Closed
1 task done

Error compiling library version 7.40.1 #7911

edoardocarpentiero opened this issue Sep 9, 2024 · 2 comments

Comments

@edoardocarpentiero
Copy link

What happened?

Hi everyone, I'm having this problem while compiling the react-native-navigation library version 7.40.1.

file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactViewGroup.kt:7:59 Unresolved reference: fullBorderRadius e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/viewcontroller/LayoutDirectionApplier.kt:11:45 Smart cast to 'ReactContext' is impossible, because 'instanceManager.currentReactContext' is a property that has open or custom getter e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/viewcontroller/LayoutDirectionApplier.kt:12:45 Smart cast to 'ReactContext' is impossible, because 'instanceManager.currentReactContext' is a property that has open or custom getter e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:53:56 Type mismatch: inferred type is MotionEvent? but MotionEvent was expected e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:53:70 Type mismatch: inferred type is EventDispatcher? but EventDispatcher was expected e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:56:56 Type mismatch: inferred type is MotionEvent? but MotionEvent was expected e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:56:70 Type mismatch: inferred type is EventDispatcher? but EventDispatcher was expected e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:60:68 Type mismatch: inferred type is EventDispatcher? but EventDispatcher was expected e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:80:52 Type mismatch: inferred type is EventDispatcher? but EventDispatcher was expected e: file:///C:/Users/<>/Desktop/Progetto%20React/node_modules/react-native-navigation/lib/android/app/src/reactNative71/java/com/reactnativenavigation/react/modal/ModalContentLayout.kt:88:52 Type mismatch: inferred type is EventDispatcher? but EventDispatcher was expected FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-navigation:compileReactNative71DebugKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > Compilation error. See log for more 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. BUILD FAILED in 24s.

The configuration used is the following:

  • "react-native": "0.75.2",
  • kotlinVersion = "1.9.24"
  • buildToolsVersion = "34.0.0"
  • minSdkVersion = 23
  • compileSdkVersion = 34
  • targetSdkVersion = 34
  • gradle = v8.8
  • node = v20.17.0

From what I could see from the error logs, there are some parameters that are not set into some method into library, causing errors in the Android app build.
I tried changing the kotlin version but nothing to do, it's always been this problem.

Thank you in advance for your support

What was the expected behaviour?

No response

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

No response

@ertugruldogan
Copy link

ertugruldogan commented Sep 10, 2024

#7905
A similar topic already exists.

@edoardocarpentiero
Copy link
Author

the fix presented by siddarthkay solves the problem

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

No branches or pull requests

2 participants