【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】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: 另一个程序正在使用此文件,进程无法访问。 )的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Flutter】Flutter 混合开
- 下一篇: 【错误记录】Flutter 混合开发获取