react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

package com.swmansion.gesturehandler.react does not exist

Open ghost opened this issue 8 years ago • 16 comments

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

ghost avatar Feb 21 '18 02:02 ghost

same issue, did you find solution?

adirzoari avatar Mar 01 '18 15:03 adirzoari

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

ghost avatar Mar 01 '18 15:03 ghost

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

fera2k avatar Apr 06 '18 15:04 fera2k

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? 😃

osdnk avatar Apr 17 '18 16:04 osdnk

@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

kmagiera avatar Apr 25 '18 11:04 kmagiera

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 👍

jvandenaardweg avatar Jan 01 '19 21:01 jvandenaardweg

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.!

trimitrtechnologies avatar Feb 21 '19 11:02 trimitrtechnologies

To install react native cli

npm install -g react-native-cli

Happy coding

KalanaPerera avatar May 20 '19 18:05 KalanaPerera

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 !

AliYar-Khan avatar Jul 16 '19 10:07 AliYar-Khan

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

claytongroth avatar Jul 25 '19 19:07 claytongroth

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)

SamiChab avatar Mar 02 '20 18:03 SamiChab

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.

musthafa-pa avatar Dec 30 '20 13:12 musthafa-pa

@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?

jgonet avatar Dec 31 '20 13:12 jgonet

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.

jhoncar7 avatar May 24 '22 20:05 jhoncar7

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'

Ha0ran2001 avatar Apr 17 '23 06:04 Ha0ran2001

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.

tchejanovich avatar Aug 25 '23 18:08 tchejanovich