欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 )

发布时间:2025/6/17 39 豆豆
生活随笔 收集整理的这篇文章主要介绍了 【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 ) 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

文章目录

  • 一、 报错信息
  • 二、 解决方案





一、 报错信息



Flutter 混合开发项目 : 在 Android 项目中 , 嵌入了 Flutter 页面 , 不小心运行了下 Flutter 项目 , 导致 Android 的 Native 项目运行出现如下报错 ;

FAILURE: Build failed with an exception.* What went wrong: Execution failed for task ':flutter:generateDebugRFile'. > java.nio.file.FileSystemException: Y:\002_WorkSpace\001_AS\flutter_hybrid\flutter_module\.android\Flutter\build\intermediates\compile_r_class_jar\debug\R.jar: 另一个程序正在使用此文件,进程无法访问。* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgDeprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 39s 41 actionable tasks: 16 executed, 25 up-to-date





二、 解决方案



关闭 Flutter 项目 , 即可解决上述问题 ;

总结

以上是生活随笔为你收集整理的【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 )的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。