react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

Android run after build success with Error should be subtype of 'BaseViewManagerInterface!'

Open zhuliminl opened this issue 4 years ago • 5 comments

Description Hi, ` Task :react-native-gesture-handler:compileDebugKotlin e: /Users/zhuliming/dev/rn/logout/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt: (37, 74): Type argument is not within its bounds: should be subtype of 'BaseViewManagerInterface!' e: /Users/zhuliming/dev/rn/logout/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt: (25, 32): Type mismatch: inferred type is ReactApplicationContext? but ReactApplicationContext was expected e: /Users/zhuliming/dev/rn/logout/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt: (21, 83): Type argument is not within its bounds: should be subtype of 'BaseViewManagerInterface!

Task :react-native-gesture-handler:compileDebugKotlin FAILED `

Platforms Android

Package versions React: 16.9.0 React Native: 0.61.5 React Native Gesture Handler: 2.4.2

Screen Shot 2022-06-01 at 4 51 42 PM

zhuliminl avatar Jun 01 '22 08:06 zhuliminl

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Description, Platforms, Steps To Reproduce, Snack or minimal code example and Package versions sections.

github-actions[bot] avatar Jun 01 '22 08:06 github-actions[bot]

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?

github-actions[bot] avatar Jun 01 '22 08:06 github-actions[bot]

Hi! I believe that would be caused by the older version of React Native. Upgrading to React Native 0.63 or newer should solve the problem.

j-piasecki avatar Jun 02 '22 07:06 j-piasecki

Same issue here. I have "react-native": "^0.68.1"

ditherized avatar Jun 06 '22 19:06 ditherized

@piscespieces If reinstalling node_modules and clearing android project doesn't help, could you share more details of your configuration and specific errors you're getting?

j-piasecki avatar Jun 08 '22 08:06 j-piasecki