前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 )

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

作者头像
韩曙亮
发布2023-03-29 15:54:44
1.1K0
发布2023-03-29 15:54:44
举报
文章被收录于专栏:韩曙亮的移动开发专栏

文章目录

一、 报错信息


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

代码语言:javascript
复制
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.org

Deprecated 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_warnings

BUILD FAILED in 39s
41 actionable tasks: 16 executed, 25 up-to-date
在这里插入图片描述
在这里插入图片描述

二、 解决方案


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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-08-29,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 文章目录
  • 一、 报错信息
  • 二、 解决方案
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档