5 thoughts on “package com.swmansion.gesturehandler.react does not exist

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

  2. 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 👍

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

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