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
I found the react-native-gesture-handler component on github, the version is 1.5.6, it itself supports androidx, some java files in the project (such as react-native-gesture-handler / android / src / main / java / com / swmansion / gesturehandler / react / RNGestureHandlerPackage.java), you can see androidx.annotation.Nullable and other androidx classes, but I installed this component into my project, and the error was: androidx.annotation was not found .Nullable, I am very confused. I looked at the official android / build.gradle and found that the implementation 'androidx.appcompat: appcompat: 1.0.2' is missing.
So I can only add implementation 'androidx.appcompat: appcompat: 1.0.2' to the build-gradle file of react-native-gesture-handler in my project, and the result compiles.
I'm curious, why the official does not introduce this 'androidx.appcompat: appcompat: 1.0.2' dependency, he can still run, but the official RNGestureHandlerPackage and other classes it does need Nullable and other classes that need androidx, does it not Is it wrong?
The text was updated successfully, but these errors were encountered:
I found the react-native-gesture-handler component on github, the version is 1.5.6, it itself supports androidx, some java files in the project (such as react-native-gesture-handler / android / src / main / java / com / swmansion / gesturehandler / react / RNGestureHandlerPackage.java), you can see androidx.annotation.Nullable and other androidx classes, but I installed this component into my project, and the error was: androidx.annotation was not found .Nullable, I am very confused. I looked at the official android / build.gradle and found that the implementation 'androidx.appcompat: appcompat: 1.0.2' is missing.
So I can only add implementation 'androidx.appcompat: appcompat: 1.0.2' to the build-gradle file of react-native-gesture-handler in my project, and the result compiles.
I'm curious, why the official does not introduce this 'androidx.appcompat: appcompat: 1.0.2' dependency, he can still run, but the official RNGestureHandlerPackage and other classes it does need Nullable and other classes that need androidx, does it not Is it wrong?
The text was updated successfully, but these errors were encountered: