It seems like a compatibility issue between your React Native version. I was using "react-native": "0.71.17" with "react-native-gesture-handler": "2.20.0", and I encountered issues. After trying various solutions, I found that downgrading react-native-gesture-handler to version 2.9.0 resolved the problem.
If you're still facing a similar issue, try below steps:
1.Check Kotlin Version
Ensure your project is using the correct Kotlin version. For React Native 0.71.17, Kotlin 1.6.10 is typically recommended. Update your android/build.gradle file to include:
ext {
kotlinVersion = "1.6.10"
}
Rebuild the Project:
npm install cd android ./gradlew clean cd .. npx react-native run-android