简体   繁体   English

评估项目“:react-native-reanimated”时出现问题

[英]A problem occurred evaluating project ':react-native-reanimated'

While making build I am getting this issue在进行构建时,我遇到了这个问题

A problem occurred evaluating project ':react-native-reanimated'.
> Task with path ':app:mergeDebugNativeLibs' not found in project ':app'

Package version套餐版本

"react-native-reanimated": "^2.2.2",

yesterday it was running fine and today it is causing the error.昨天它运行良好,今天它导致了错误。 I uninstall and reinstall the package and also link it manually using react-native link react-native-reanimated but still not working.我卸载并重新安装软件包,并使用react-native link react-native-reanimated手动链接它,但仍然无法正常工作。

I had the same problem.我有同样的问题。 The project was working fine before, but after changing my PC and installed the dev env there, android studio gave this error.该项目之前运行良好,但是在更改我的 PC 并在那里安装了 dev env 后,android studio 出现了此错误。 I had the project installed on mac machine, checked the node version of 2 environments.我在mac机器上安装了该项目,检查了2个环境的节点版本。 They were different.他们是不同的。 On windows, node -v was 16.12.0, on mac, it was 14.8.0在 Windows 上, node -v是 16.12.0,在 mac 上,它是 14.8.0

So, I uninstalled the current node.js from windows OS, then installed older version of it.所以,我从 Windows 操作系统卸载了当前的 node.js,然后安装了它的旧版本

After that, did npm install again, and gradle sync.之后,再次进行npm install和 gradle sync。 It worked!有效!

Hope this helps your problem.希望这可以帮助您解决问题。

I was using react-native-reanimated version 2.2.4 and after reading this issue I downgraded to 2.2.0 which was a quick win for my project.我使用的是react-native-reanimated版本2.2.4 ,在阅读此问题后,我降级到2.2.0 ,这对我的项目来说是一个快速的胜利。 However a fix for the know issue has apparently been merged here .然而,对已知问题的修复显然已在此处合并

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 构建失败“配置项目时出现问题:react-native-reanimated”。 在 React Native 项目中 - Build failed 'A problem occurred configuring project ':react-native-reanimated'. in React native project 运行反应原生裸项目导致错误配置项目':react-native-reanimated'时出现问题 - Running react native bare project results in error A problem occurred configuring project ':react-native-reanimated' React-Native-Reanimated: 错误: node_modules\react-native-reanimated\src\index.ts: - React-Native-Reanimated: error: node_modules\react-native-reanimated\src\index.ts: React Native 中的任务 ':react-native-reanimated:androidJavadoc' 执行失败 - Execution failed for task ':react-native-reanimated:androidJavadoc' in React Native ReactNative 错误:任务 ':react-native-reanimated:checkDebugManifest' 执行失败 - ReactNative error: Execution failed for task ':react-native-reanimated:checkDebugManifest' React Native:尝试在 Android 上运行时评估项目“:app”时出现问题 - React Native: A problem occurred evaluating project ':app' when trying to run on Android react-native-reanimated react-native-screens 未打开反应本机应用程序 - react native Application doesn't open with react-native-reanimated react-native-screens installed react-native-reanimated:androidJavadoc 在 android 设备上运行 react-native 应用程序时出错 - react-native-reanimated:androidJavadoc errors running react-native app on android devices React Native - 无法确定任务':react-native-reanimated:generateJsonModelDebug'的依赖关系 - React Native - Could not determine the dependencies of task ':react-native-reanimated:generateJsonModelDebug' 评估项目“:app”时出现问题 - Problem Occurred evaluating project ':app'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM