react-native-true-sheet icon indicating copy to clipboard operation
react-native-true-sheet copied to clipboard

Android build fails with errors

Open mantu-bit opened this issue 10 months ago • 1 comments

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

  1. Install latest version
  2. run prebuild command
  3. try to run android build
  4. build fails with errors

Reproducible example repository

not available

mantu-bit avatar Mar 13 '25 14:03 mantu-bit

hi @mantu-bit have you solved this issue? I just encountered it too. Expo and library version is exactly the same!

nastarfan avatar Apr 28 '25 14:04 nastarfan

I just encountered the same issue -- @mantu-bit did you end up solving it?

brandonballinger avatar Jul 02 '25 17:07 brandonballinger

FYI, just submitted a PR with a fix that worked for me: https://github.com/lodev09/react-native-true-sheet/pull/194

brandonballinger avatar Jul 02 '25 19:07 brandonballinger