IntelliJ - 访问被拒绝
我正在使用 Eclipse IDE Helios Service Release 2 构建 Android 应用程序以进行 TFS 集成,但现在需要使用 IntelliJ IDE。我能够将项目很好地移植到 IntelliJ 中,但由于文件系统的权限问题而无法运行它,我认为这是由 eclipse 引起的,因为我也无法使用操作系统更改或删除文件(Windows 7)。
使用 IntelliJ 进行构建时的输出:
写入 [文件] 时出错:[位置](访问被拒绝)
Windows 在尝试删除任何文件时会出现类似的错误。 (无法删除 [文件]:访问被拒绝。
这也不是 TFS 问题,因为我要更改/删除的文件不在源代码管理中。
I am building an Android application using Eclipse IDE Helios Service Release 2 for TFS integration but need to now use IntelliJ IDE. I am able to port the project just fine into IntelliJ, but am not able to run it due to a permissions issue with the file system that I believe is being caused by eclipse since I can't alter or delete the files using the OS either (Windows 7).
Output while buiding with IntelliJ:
error while writing [file] : [location] (Access is denied)
Windows gives a similar error when attempting to delete any files. (Cannot delete [file]: Access is denied.
It isn't a TFS issue either since the files I am altering/deleting aren't in the Source Control.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
大多数情况下,Windows 上的这种“权限问题”实际上是由于文件系统“功能”造成的,因此您无法在文件打开以进行读取或写入时删除它们。构建通常意味着删除旧的,生成新的。您能想到什么可能使有问题的文件保持打开状态吗?
Most of time this kind of "permissions issue" on Windows is actually due to the filesystem "feature" such that you can't delete to files while they're open for reading or writing. Building normally means deleting the old, generating the new. Can you think of anything that may be holding the offending file(s) open?
我最终为我的项目创建了另一个 TFS 工作区用它来代替。这似乎是最简单的解决方案。
I ended up creating another TFS workspace for my project & used that instead. It seemed the easiest solution.