React-native-gesture-handler: Android x migration issue

Created on 21 Jun 2019  路  5Comments  路  Source: software-mansion/react-native-gesture-handler

I recently upgraded our app to RN version 0.59.5 and AndroidX.

I am getting locally following issue:

/Users/user/Documents/Repos/kiosk-app/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:3: error: package android.support.v4.util does not exist
import android.support.v4.util.Pools;
...

When I migrated package react-native-gesture-handler also to AndroidX it works.
Since we use bitrise CI, and there is not possible to migrate react-native-gesture-handler to AndroidX is possible that somehow you fix and upgrade package to AndroidX ?

Reference (first answer here, how it works):
https://stackoverflow.com/questions/56069906/cant-resolve-symbol-android-support-v4-util-pools-in-react-native-gesture-handl

Most helpful comment

@IacoCesar Try below in your package.json.

"react-native-gesture-handler": "git://github.com/hyochan/react-native-gesture-handler.git#package-names",

All 5 comments

hi @nadzic , did you find any solution?

656 will fix your issue.

same issue

@IacoCesar Try below in your package.json.

"react-native-gesture-handler": "git://github.com/hyochan/react-native-gesture-handler.git#package-names",

This should be resolved by #734.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhaimincs picture muhaimincs  路  3Comments

brentvatne picture brentvatne  路  4Comments

neiker picture neiker  路  3Comments

tallen11 picture tallen11  路  3Comments

nguyenhose picture nguyenhose  路  4Comments