You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kotlin Compilation Fails – Unresolved Supertype ViewManagerWithGeneratedInterface and Cannot access 'ViewManagerWithGeneratedInterface' which is a supertype of ... #3564
React Native: 0.76.5
React: 18.3.1
react-native-reanimated: 3.16.7
react-native-screens: 4.6.0
Gradle: 8.10.2
Kotlin: 2.0.21. e: RNGestureHandlerButtonViewManager.kt: Cannot access 'ViewManagerWithGeneratedInterface'
which is a supertype of 'RNGestureHandlerButtonViewManager'.
Check your module classpath for missing or conflicting dependencies.
Steps to reproduce
Try to build the Android project using npm run android.
Compilation fails with Kotlin errors.
Hi @vinaykumarIndia! Based on description I assume that your target platform is android. Beside that, is something wrong with macOS? (I'm asking since you've chose this platform).
Anyway, both, RN 0.76 and Gesture Handler 2.23.1 are quite old, does this also happen in newer versions?
@larkonesvk each Gesture Handler version is guaranteed to support 3 latest minor releases of RN, so for 2.26 last supported version is RN 0.78. For older versions it might work, but we do not test that far behind.
@m-bert Can you pls have a look at this too same issue working in debug mode , but failing during release build job
React native 0.74.7 -old architecture
React native guesture handler tried versions from 2.20 to latest same issue with all
platform Android(no issues with ios build)
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class com.facebook.react.viewmanagers.RNGestureHandlerButtonManagerInterface, unresolved supertypes: ViewManagerWithGeneratedInterface
class com.facebook.react.viewmanagers.RNGestureHandlerRootViewManagerInterface, unresolved supertypes: ViewManagerWithGeneratedInterface
I am currently on a MacOs with React-native version 0.76.8 and just tried building for android with version 2.25.0 and I also am getting the same build error:
node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt:25:79 Cannot access 'ViewManagerWithGeneratedInterface' which is a supertype of 'com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager'. Check your module classpath for missing or conflicting dependencies FAILURE: Build failed.
I am trying to just test out different versions to see what clicks but I started with a older version of gesture handler and worked my way up to here. I will comment here if i find a way through it.
I am currently on a MacOs with React-native version 0.76.8 and just tried building for android with version 2.25.0 and I also am getting the same build error:
I'm having the same problem. Using react-native 0.77.2. I had to install this to use React Native Reanimated Carousel, and while it works flawlessly in iOS it crashes while building in Android
Activity
github-actions commentedon Jun 17, 2025
Hey! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
m-bert commentedon Jun 17, 2025
Hi @vinaykumarIndia! Based on description I assume that your target platform is
android. Beside that, is something wrong withmacOS? (I'm asking since you've chose this platform).Anyway, both, RN 0.76 and Gesture Handler 2.23.1 are quite old, does this also happen in newer versions?
larkonesvk commentedon Jun 17, 2025
same here, only for android, suddenly the android build stopped working
RN: 0.76.6
GestureHandler: 2.26.0
if I use GestureHandler: 2.25.0 it's working
m-bert commentedon Jun 17, 2025
@larkonesvk each Gesture Handler version is guaranteed to support 3 latest minor releases of RN, so for 2.26 last supported version is RN 0.78. For older versions it might work, but we do not test that far behind.
camboYY commentedon Jun 23, 2025
same here
RN: 0.75.4
GestureHandler: 2.25.0
not working
m-bert commentedon Jun 23, 2025
@camboYY 2.25.0 is meant to be used with at least 0.76.
@vinaykumarIndia have you been able to try updated versions?
vamsig7 commentedon Jun 24, 2025
@m-bert Can you pls have a look at this too same issue working in debug mode , but failing during release build job
React native 0.74.7 -old architecture
React native guesture handler tried versions from 2.20 to latest same issue with all
platform Android(no issues with ios build)
m-bert commentedon Jun 24, 2025
I've just created RN app on 0.74.7 with Gesture Handler 2.23.1 - last version supporting 0.74. It works as expected on both debug and release.
CascadiaTech commentedon Jun 24, 2025
I am currently on a MacOs with React-native version 0.76.8 and just tried building for android with version 2.25.0 and I also am getting the same build error:
node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt:25:79 Cannot access 'ViewManagerWithGeneratedInterface' which is a supertype of 'com.swmansion.gesturehandler.react.RNGestureHandlerRootViewManager'. Check your module classpath for missing or conflicting dependencies FAILURE: Build failed.
I am trying to just test out different versions to see what clicks but I started with a older version of gesture handler and worked my way up to here. I will comment here if i find a way through it.
m-bert commentedon Jun 25, 2025
Hi @CascadiaTech!
Can you show me your
package.json?m-bert commentedon Jun 25, 2025
Since we cannot reproduce this on our end, we have to take some action. I'm closing this issue as there is no reproduction that we can look at.
If this issue still persists, you can open new one. In that case:
react-native>=0.78.0)react-nativebetween0.79.xand0.76.0)Caution
Issues without working reproduction, as well as using older Gesture Handler versions (<
2.25.0), will be closed!himanshu-brainvire-21 commentedon Jul 2, 2025
jeff-dev94 commentedon Jul 7, 2025
my react-native version is 0.75.1. Although I tried to fix the issue multiple times (using several versions), I'm still getting this error:
UnderTheMoonspell commentedon Jul 7, 2025
I'm having the same problem. Using react-native 0.77.2. I had to install this to use React Native Reanimated Carousel, and while it works flawlessly in iOS it crashes while building in Android
m-bert commentedon Jul 8, 2025
We've decided to lock conversation on this issue since no valuable information were provided.
As per my last comment, if this issue still persists, you can open new one. In that case:
react-native>=0.78.0)react-nativebetween0.79.xand0.76.0)Caution
Issues without working reproduction, as well as using older Gesture Handler versions (<
2.25.0) or React Native (<0.76.0), will be closed!