" com.swmansion.gesturehandler.react" ERROR APPEARS


When i tried to setup React navigation, i also installed react native gesture handler.

I have added the all the required thinks as per the link below in Main Activity class.


Am getting these bugs:

\MainActivity.java:9: error: package com.swmansion.gesturehandler.react does not exist
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
D:\ReactNative\taskproject\android\app\src\main\java\com\taskproject\MainActivity.java:28: error: cannot find symbol
                return new RNGestureHandlerEnabledRootView(MainActivity.this);
  symbol: class RNGestureHandlerEnabledRootView
2 errors

This there any work around ? AM banging my head for past 2 days. Or do i have to setup something in gradle.
I have linked the react react gesture but still it doesn’t work for me.


When i ran react-native gesture handle –link, It does got added to build.gradle

I manually added the dependencies to build.gradle

Answered By – Ankit Jayaprakash

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published