我一直在尝试将Android Studio从1.5.1升级到2.1.2,并且一直在给我java.io.FileNotFoundException,并且((请求的操作无法在具有用户映射的文件上执行部分打开)".
I've been trying to upgrade Android Studio from 1.5.1 to 2.1.2 and it keeps giving me the java.io.FileNotFoundException, and that "(The requested operation cannot be performed on a file with a user-mapped section open)".
(见下文)
java.io.FileNotFoundException: C:\Users\name\.AndroidStudio1.5\system\log\idea.updater.files.tmp.0\temp.tmp.1\gradle\gradle-2.8\docs\dsl\org.gradle.api.plugins.ApplicationPluginConvention.html (The requested operation cannot be performed on a file with a user-mapped section open)请帮助!
*注意:我在Windows 7上.
*Note: I'm on Windows 7.
推荐答案我认为回答这个问题为时已晚.我很久以前就遇到了这个问题,仅通过禁用Windows Defender的实时保护就解决了这个问题.这里发生的是系统保护工具(防病毒,Windows Defender等)删除了引起此故障的必要安装文件.
I think its too late to answer this. I faced this problem some time back and solved it just by disabling real-time protection of Windows Defender. What happens here is system protection tools (antivirus, windows defender etc) deletes the necessary installation files causing this trouble.
要禁用Windows Defender:
To disable Windows defender:
现在再次运行升级.它将成功完成.升级完成后,再次打开实时保护.
Now run the upgrade again. It will go through successfully. Once done with upgrade, turn on real-time protection again.
如果不是Windows Defender,则可以尝试在升级时关闭防病毒保护.
If not Windows Defender, you can try turning off antivirus protection at the time of upgrade.
希望这会有所帮助.
更多推荐
Android Studio(1.5.1至2.1.2)无法应用补丁(FileNotFoundException)
发布评论