[英]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.org在https://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.org在https://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.