react-native - React Native Reanimated 错误 : Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'

标签 react-native react-navigation

嗨,我最近创建了一个 react native 应用程序版本 0.60.5,并安装了 react-navigation 和 react-native-reanimated。当我在 Android Studio 中构建项目时,我在 react-native-reanimated: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac' 中收到此错误。我做错了什么吗?

这是一个屏幕截图:
a

最佳答案

这对我有用:

npm install -g jetifier
npx jetify

在根项目中。感谢 Harsh2402 对这个问题的回答:https://github.com/kmagiera/react-native-gesture-handler/issues/642

关于react-native - React Native Reanimated 错误 : Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57934866/

相关文章:

android - 使用 Android NDK 在 C 或 C++ 中创建 react-native Native 模块?

react-native - 如何使用 AND/OR 运算符过滤列表/查询 AWS Amplify JavaScript GraphQL

react-native - 从一个选项卡移动到另一个选项卡并返回第一个选项卡后,如何重新渲染屏幕及其所有组件?

javascript - 为什么我的 firebase onAuthStateChanged() 触发多次? ( react 原生)

javascript - 一个屏幕上的 React Native 两个抽屉

javascript - 返回并显示传递给卡片中组件的值

javascript - 来自 Cloud Storage 的图像未在 .map 列表中重新渲染

ios - Xcode stdint.h #error 只有在使用 MSVC 编译时才应包含此文件

javascript - AWS Amplify Authenticator React Native Tab Bar Navigation白屏,而不是呈现我的应用

react-native - 类型错误 : Cannot read property 'createDrawerNavigator' of undefined