简体   繁体   English

此进程无法访问该文件,因为 KOTLIN 中的另一个进程 (java.nio.file.FileSystemException) 正在使用该文件

[英]This process cannot access the file because the file is being used by another process (java.nio.file.FileSystemException) in KOTLIN

In Kotlin when I tried to run file I faced with this issue.在 Kotlin 中,当我尝试运行文件时遇到了这个问题。 It says 'This process cannot access the file because the file is being used by another process' here in English.它用英文显示“此进程无法访问该文件,因为该文件正在被另一个进程使用”。

This is the command line error in compile time这是编译时的命令行错误

To solve it follow these steps要解决它,请按照以下步骤操作

1 ) In your IDE probably DefaultPreview shows as chosen, click on it and change it to app 1)在您的 IDE 中,可能 DefaultPreview 显示为选中,单击它并将其更改为应用程序

在此处输入图像描述

2) It should look like this at the and: 2)它应该看起来像这样:

在此处输入图像描述

This should solve your problem.这应该可以解决您的问题。

暂无
暂无

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

相关问题 java.nio.file.FileSystemException:进程无法访问该文件,因为它正被另一个进程使用 - java.nio.file.FileSystemException: The process cannot access the file because it is being used by another process java.nio.file.FileSystemException 进程无法访问该文件,因为它正被另一个进程使用 - java.nio.file.FileSystemException The process cannot access the file because it is being used by another process 如何解决 java.nio.file.FileSystemException 进程无法访问该文件,因为它正在被另一个进程使用 - How to resolve java.nio.file.FileSystemException The process cannot access the file because it is being used by another process java.nio.file.FileSystemException:无法访问该文件,因为它正由另一个进程使用 - java.nio.file.FileSystemException : cannot access the file because it is being used by another process java.nio.file.FileSystemException: C:\test.csv -> C:\test2.csv: The process cannot access the file because it is being used by another process in java - java.nio.file.FileSystemException: C:\test.csv -> C:\test2.csv: The process cannot access the file because it is being used by another process in java java.nio.file.FileSystemException: C:\p12\dummy.p12: 该进程无法访问该文件,因为它正被另一个进程使用 - java.nio.file.FileSystemException: C:\p12\dummy.p12: The process cannot access the file because it is being used by another process readAllBytes()。 FileSystemException:该进程无法访问该文件,因为它正在被另一个进程使用 - readAllBytes(). FileSystemException: The process cannot access the file because it is being used by another process java - 该进程无法访问该文件,因为它正被另一个进程使用 - java - The process cannot access the file because it is being used by another process FileSystemException 进程无法访问该文件,因为它正被另一个进程使用 测试后无法正确清除结果文件 - FileSystemException The process cannot access the file because it is being used by another process Can't correctly clear result files after test Files.move(...) 抛出 FileSystemException:进程无法访问该文件,因为它正被另一个进程使用 - Files.move(...) throwing FileSystemException: The process cannot access the file be cause it is being used by another process
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM