在 Android 上执行代码期间 React-Native-Gesture-Handler 失败

标签 react-native

我正在尝试为我的项目使用 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

有人能帮助我吗?

最佳答案

关于在 Android 上执行代码期间 React-Native-Gesture-Handler 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56910132/

相关文章:

javascript - 使用抽屉导航时 react 导航标题不可见

react-native - JSON解析错误: Unrecognized token '<' - React Native

react-native - React Native 组件层次结构是否记录在任何地方?如果是,在哪里或如何?

node.js - 世博会启动命令未运行

reactjs - React Native - StyleSheet.absoluteFill() 和 StyleSheet.absoluteFillObject() 有什么区别?

android - 我能否使用 React Native 框架在 Mountain Lion 中编写/发布 iOS 和 Android 应用程序?

javascript - 如何在 React Native 中的 React Navigation 中禁用 createDrawerNavigator 中的 header

javascript - 无法在另一个方法内调用导航

javascript - 为什么我可以在 JavaScript/TypeScript 中声明变量之前使用它?

javascript - React-Native assembleRelease 任务 ':app:bundleReleaseJsAndAssets' 失败