简体   繁体   English

构建失败“配置项目时出现问题:react-native-reanimated”。 在 React Native 项目中

[英]Build failed 'A problem occurred configuring project ':react-native-reanimated'. in React native project

I am trying to run project with command,我正在尝试使用命令运行项目,

npx react-native run-android

and found this as an error: FAILURE: Build failed with an exception.并发现这是一个错误:FAILURE: Build failed with an exception。

  • Where: Build file 'C:\Users\Documents\project\project_Workspace\projectname\node_modules\react-native-reanimated\android\build.gradle' line: 69其中:构建文件 'C:\Users\Documents\project\project_Workspace\projectname\node_modules\react-native-reanimated\android\build.gradle' 行:69

  • What went wrong: A problem occurred configuring project ':react-native-reanimated'.出了什么问题:配置项目“:react-native-reanimated”时出现问题。

java.io.IOException: The filename, directory name, or volume label syntax is incorrect java.io.IOException: 文件名、目录名或卷 label 语法不正确

  • Try: Run with --stacktrace option to get the stack trace.尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. Run with --scan to get full insights.使用 --info 或 --debug 选项运行以获取更多日志 output。使用 --scan 运行以获取完整的见解。

  • Get more help at https://help.gradle.orghttps://help.gradle.org获得更多帮助

BUILD FAILED in 33s stuck to resolve this error. BUILD FAILED in 33s 坚持解决此错误。 Help me to resolve this error.帮我解决这个错误。

I am trying to run project with command,我正在尝试使用命令运行项目,

npx react-native run-android

and found this as an error: FAILURE: Build failed with an exception.并发现这是一个错误:失败:生成失败,出现异常。

  • Where: Build file 'C:\\Users\\Documents\\project\\project_Workspace\\projectname\\node_modules\\react-native-reanimated\\android\\build.gradle' line: 69其中:构建文件“ C:\\ Users \\ Documents \\ project \\ project_Workspace \\ projectname \\ node_modules \\ react-native-reanimated \\ android \\ build.gradle”行:69

  • What went wrong: A problem occurred configuring project ':react-native-reanimated'.出了什么问题:在配置项目':react-native-reanimated'时发生了问题。

java.io.IOException: The filename, directory name, or volume label syntax is incorrect java.io.IOException:文件名,目录名称或卷标签语法不正确

  • Try: Run with --stacktrace option to get the stack trace.尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用--info或--debug选项运行,以获取更多日志输出。 Run with --scan to get full insights.与--scan一起运行以获取完整的见解。

  • Get more help at https://help.gradle.orghttps://help.gradle.org上获得更多帮助

BUILD FAILED in 33s stuck to resolve this error.在33秒钟内无法解决此问题,因此无法解决此问题。 Help me to resolve this error.帮助我解决此错误。

Try to use this version尝试使用这个版本

"react-native-reanimated": "2.0.0-rc.3"

It's worked to me.它对我有用。

For me, updating to reanimated@2.11.0 fixed my compile error I am using react-native 0.69.3.对我来说,更新到 reanimated@2.11.0 修复了我正在使用 react-native 0.69.3 的编译错误。

As mention earlier this work如前所述,这项工作

sdk.dir=C:\\Users\\<userName>\\AppData\\Local\\Android\\Sdk

暂无
暂无

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

相关问题 运行反应原生裸项目导致错误配置项目':react-native-reanimated'时出现问题 - Running react native bare project results in error A problem occurred configuring project ':react-native-reanimated' 评估项目“:react-native-reanimated”时出现问题 - A problem occurred evaluating project ':react-native-reanimated' 在 React Native 中配置项目时出现问题 - A problem occurred configuring project in React Native React Native 中的任务 ':react-native-reanimated:androidJavadoc' 执行失败 - Execution failed for task ':react-native-reanimated:androidJavadoc' in React Native 配置项目&#39;:react-native-vector-icons&#39;时发生问题 - A problem occurred configuring project ':react-native-vector-icons' 配置项目 ':@volst_react-native-tuya' 时出现问题 - A problem occurred configuring project ':@volst_react-native-tuya' 配置项目“:react-native-gesture-handler”时出现问题 - A problem occurred configuring project ':react-native-gesture-handler' ReactNative 错误:任务 &#39;:react-native-reanimated:checkDebugManifest&#39; 执行失败 - ReactNative error: Execution failed for task ':react-native-reanimated:checkDebugManifest' 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 Android 构建失败 - 配置项目“:expo-image-loader”时出现问题。java.lang.IllegalArgumentException(无错误消息) - React Native Android Build Failure - A problem occurred configuring project ':expo-image-loader'.java.lang.IllegalArgumentException (no error message)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM