-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Description
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
-
Where:
Build file '/-----/node_modules/.pnpm/react-native-gesture-handler@2.8.0_ondxtwf5lqq5g76dzmsmwamaca/node_modules/react-native-gesture-handler/android/build.gradle' line: 101 -
What went wrong:
Execution failed for task ':react-native-gesture-handler:assertNoMultipleInstances'.
java.lang.Exception:
[Gesture Handler] Multiple instances of Gesture Handler were detected. Only one instance of react-native-gesture-handler can be installed in a project. You need to resolve the conflict manually. Check out the documentation: https://docs.swmansion.com/react-native-gesture-handler/docs/troubleshooting#multiple-instances-of-gesture-handler-were-detected
Conflict between:
- /-----/node_modules/.pnpm/@react-navigation+drawer@6.5.6_7ezvmudzpp3w7dgvpzat2xm7zm/node_modules/react-native-gesture-handler
- /-----/node_modules/.pnpm/react-native-gesture-handler@2.8.0_ondxtwf5lqq5g76dzmsmwamaca/node_modules/react-native-gesture-handler
- /-----/node_modules/react-native-gesture-handler
Steps to reproduce
Use pnpm to apply react navigation drawer
"react": "17.0.2",
"react-native": "0.68.5",
"react-native-reanimated": "^2.13.0",
"react-native-safe-area-context": "^4.4.1",
"react-native-screens": "^3.18.2",
"react-native-gesture-handler": "^2.8.0"
"@react-navigation/drawer": "^6.5.6",
"@react-navigation/native": "^6.1.1",
"@react-navigation/native-stack": "^6.9.7",
Snack or a link to a repository
(https://pnpm.io/package_json#pnpmoverrides)
Gesture Handler version
2.8.0
React Native version
68.5
Platforms
Android
JavaScript runtime
None
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Android emulator
Device model
pixel_2_api_31:5554
Acknowledgements
Yes