react-native - React-Native-Gesture-Handler 在 Android 上执行代码期间失败
问题描述
我正在尝试为我的项目使用 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
有人能帮助我吗?
解决方案
npm i jetifier
npx jetify
在 rn 0.6 上为我修好了
https://github.com/kmagiera/react-native-gesture-handler/issues/647#issuecomment-508459010
推荐阅读
- spring - 如何在以下情况下设计 Spring Boot JPA 模型类?
- php - Laravel 求和并将负数和正数分开作为值
- c# - 如何使用 C# 在 Unity 中创建 Lifesteal 系统?
- python - 结合所有属性的模型(有时会无用)还是几个小模型?
- reactjs - DrawerNavigator 标头覆盖 React Native 中的 StackNavigator 标头
- android - NoSuchMethodError:在 null 上调用了 getter 'path'。接收方:null 尝试调用:路径
- javascript - 如何在移动应用程序中隐藏颤动的 webview
- firebase - Future Builder 不显示来自 Cloud Firestore 的数据
- java - 如何从java调用Nodejs函数
- python-3.x - 有什么方法可以跟踪 shutil.make_archive() 的进度吗?