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

package com.swmansion.gesturehandler.react does not exist #124

Closed
DungBuiDeveloper opened this issue Feb 21, 2018 · 16 comments
Closed

package com.swmansion.gesturehandler.react does not exist #124

DungBuiDeveloper opened this issue Feb 21, 2018 · 16 comments

Comments

@DungBuiDeveloper
Copy link

i follow settup and always recived this issue . who can solve for me please.

@adirzoari
Copy link

same issue, did you find solution?

@DungBuiDeveloper
Copy link
Author

i'm still wait for someone can solve , boring now

@fera2k
Copy link

fera2k commented Apr 6, 2018

edit the file android/app/build.gradle and under the dependencies block, add this line:
implementation project(':react-native-gesture-handler')

@osdnk
Copy link
Contributor

osdnk commented Apr 17, 2018

Did you carefully follow the "readme"? Do you have the newest version of react-native?
I just made a sample project by react-native init and followed the instruction then pasted code from Example App. Could you try it again with newest version of RN and RNGH? 😃

@kmagiera
Copy link
Member

@DungBuiDeveloper, @adirzoari did the suggestion by @fera2k help you? I believe this is related to your setup and most likely the library is not properly linked.

Feel free to reopen this issue if the problem persists. Also next time would be much easier if you provide a more comprehensive description of the issue like the full error message, command you run to get the error, if it happens at the build step or runtime etc

@jvandenaardweg
Copy link

I know this issue is closed, but I've stumbled upon the same error when I try to run my app on Android. I have all the latest versions to date and used the getting started guide correctly. But in the end, this fixed it for me:

open app/android/app/src/main/java/com/YOUR_APP_NAME/MainApplication.java:

change this import:
import com.swmansion.gesturehandler.RNGestureHandlerPackage;

to this:
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage

Hope it might help others 👍

@trimitrtechnologies
Copy link

People still struggling with it can try below command

react-native link react-native-gesture-handler
and then

react-native run-android

did work with me.!

@KalanaPerera
Copy link

To install react native cli

npm install -g react-native-cli

Happy coding

@AliYar-Khan
Copy link

edit the file android/app/build.gradle and under the dependencies block, add this line:
implementation project(':react-native-gesture-handler')

this works for me ! thanks sir !

@claytongroth
Copy link

claytongroth commented Jul 25, 2019

implementation project(path: ':react-native-gesture-handler')
Typed it wrong.

@SamiChab
Copy link

SamiChab commented Mar 2, 2020

It happened to me as I commented following line in app/build.gradle and settings.gradle:
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

akeemphilbert added a commit to akeemphilbert/easter-egg-hunt that referenced this issue Apr 13, 2020
* Create homescreen with 3 buttons
* Tried adding the react navigation to it ran into issues similar to what is found here - software-mansion/react-native-gesture-handler#124
*  Created component for creating an egg hunt
* Added redux to the mix
* Created basic eggs reducer
* Created basic store
* Created basic action types
EGG-5
* Linked the add egg reducer to the view
* Added Get random package to get around issue with the uuid library not working on react-native
* Moved the CreateEggHunt to container folder (it was in components)
* Created reducer for creating a egghunt
* Added screen for the AR portion of the app
* Capitalized screen names
* Added action type for add eggs to a hunt
@musthafa-pa
Copy link

musthafa-pa commented Dec 30, 2020

I have tried adding implementation project(':react-native-gesture-handler') inside app/build.gradle. But nothing seems to work for me. Also, I have followed everything closely according to your documentation.

@jakub-gonet
Copy link
Member

@musthafa-pa, could you post more info about your RN and Gradle versions, if you installed RNGH for the first time or you're upgrading and if you cleared Gradle (and other) caches?

@jhoncar7
Copy link

Hola, tuvo el mismo inconveniente justo hace un día, y no encontré la solución.

intente volviendo a instalar la dependencia 'yarn add react-native-gesture-handler' y me funciono perfecto.

lo dejo por si le sirve a alguien mas.

saludos.

@Ha0ran2001
Copy link

People still struggling with it can try below command

react-native link react-native-gesture-handler and then

react-native run-android

did work with me.!

I got error: unknown command 'link'

@tchejanovich
Copy link

tchejanovich commented Aug 25, 2023

Hi, I'm still having this issue.

"react-native": "0.70.0",
"react-native-gesture-handler": "2.10.0",

None of the solutions above works for me.

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

No branches or pull requests