Android build fails with errors
Before submitting a new issue
- [x] I tested using the latest version of the library, as the bug might be already fixed.
- [x] I tested using a supported version of react native.
- [x] I checked for possible duplicate issues, with possible answers.
Bug summary
Task :lodev09_react-native-true-sheet:compileDebugKotlin FAILED e: file:///Users/itech/Desktop/Live_Projects/mobile_carpool/RideToDuty-Customer/node_modules/@lodev09/react-native-true-sheet/android/src/main/java/com/lodev09/truesheet/core/RootSheetView.kt:63:66 Too many arguments for public open fun handleTouchEvent(p0: MotionEvent!, p1: EventDispatcher!): Unit defined in com.facebook.react.uimanager.JSTouchDispatcher e: file:///Users/itech/Desktop/Live_Projects/mobile_carpool/RideToDuty-Customer/node_modules/@lodev09/react-native-true-sheet/android/src/main/java/com/lodev09/truesheet/core/RootSheetView.kt:72:66 Too many arguments for public open fun handleTouchEvent(p0: MotionEvent!, p1: EventDispatcher!): Unit defined in com.facebook.react.uimanager.JSTouchDispatcher
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':lodev09_react-native-true-sheet:compileDebugKotlin'.
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.
Library version
2.0.5
Environment info
Expo 51
Steps to reproduce
- Install latest version
- run prebuild command
- try to run android build
- build fails with errors
Reproducible example repository
not available
hi @mantu-bit have you solved this issue? I just encountered it too. Expo and library version is exactly the same!
I just encountered the same issue -- @mantu-bit did you end up solving it?
FYI, just submitted a PR with a fix that worked for me: https://github.com/lodev09/react-native-true-sheet/pull/194