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

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

Closed
Fransch97 opened this issue Mar 24, 2024 · 3 comments
Labels
Missing repro Platform: Android This issue is specific to Android

Comments

@Fransch97
Copy link

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

Copy link

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?

@github-actions github-actions bot added the Platform: Android This issue is specific to Android label Mar 24, 2024
@Fransch97
Copy link
Author

Screenshot 2024-03-24 alle 22 25 18

@Fransch97
Copy link
Author

Fransch97 commented Mar 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

1 participant