我正在尝试为我的项目使用react-native-navigation库,但是要使用它,我需要手势处理程序。我安装它并编辑MainActivity.jar(如网站上所述)以进行react-navigation和react-native-gesture-handler。但是每当我尝试使用“ react-native start”和“ react-native run-android”运行代码时,它都会尝试并编译所有内容,但随后失败并显示以下错误消息:
> Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
20 actionable tasks: 20 executed
有人可以帮我吗?
答案 0 :(得分:1)
npm i jetifier
npx jetify
我在0.6 rn修复了它
https://github.com/kmagiera/react-native-gesture-handler/issues/647#issuecomment-508459010