For me it was using both
implementation project(':react-native-gesture-handler') and
implementation 'com.swmansion.gesturehandler:react-native-gesture-handler:2.22.0'
in my app\build.grradle. When I added both, Gradle was trying to resolve the module from two different sources, which ledto conflicts. In particular, it might not find the version 2.22.0 if it’s not available in the configured repositories or if the project path resolves differently. I hope this helps! Thanks ChatGPT!