React Native Reanimated 错误:任务 ':react-native-reanimated:compileDebugJavaWithJavac' 执行失败 [英] React Native Reanimated error: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'

查看:52
本文介绍了React Native Reanimated 错误:任务 ':react-native-reanimated:compileDebugJavaWithJavac' 执行失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Hi I recently created a react native app version 0.60.5 and installed react-navigation with react-native-reanimated. When I built the project in Android Studio, I'm getting this error in react-native-reanimated: Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'. Is there anything I did wrong?

截图如下:

推荐答案

这对我有用:

npm install -g jetifier
npx jetify

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

At root project. Thanks to Harsh2402 for his answer on this issue : https://github.com/kmagiera/react-native-gesture-handler/issues/642

这篇关于React Native Reanimated 错误:任务 ':react-native-reanimated:compileDebugJavaWithJavac' 执行失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆