software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.14k stars 982 forks source link

Android only: after installing the package the build fails, when the app already runs the package works and its great #2825

Closed Fransch97 closed 8 months ago

Fransch97 commented 8 months ago

Description

After installing the package running the build command it fails. When the app already runs the package works and its a very great package, can you guys fix it? Commands: npm install react-native-gesture-handler npx react-native run-android

Error message: node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt:597:45 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'com.swmansion.gesturehandler.core.GestureHandler<*>?'.

Steps to reproduce

npm install react-native-gesture-handler npx react-native run-android

More: "react": "18.2.0", "react-native": "0.72.0",

Snack or a link to a repository

none

Gesture Handler version

2.15.0

React Native version

0.72.0

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 8 months ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

Fransch97 commented 8 months ago
Screenshot 2024-03-24 alle 22 25 18
Fransch97 commented 8 months ago

So i was working with the new beta Kotlin version, because I hadkotlinVersion = "+" for now the hack fixing a version worked for me. Hope this can help someone.
kotlinVersion = "1.8.10"

SamiYousef commented 4 months ago

same issue , i don't want to downgrade kotlin version