Android Studio(1.5.1至2.1.2)无法应用补丁(FileNotFoundException) [英] Android Studio (1.5.1 to 2.1.2) failed to apply patch (FileNotFoundException)
问题描述
我一直在尝试将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:
- 转到控制面板(运行->控件)
- 从控制面板" \所有控制面板项目"中查找并启动Windows Defender(或者,您可以检查实时保护"
- 取消选中打开实时保护"
- Go to control panel (Run -> control )
- From Control Panel\All Control Panel Items find out and launch Windows Defender (Alternatively you can check this link how to run it direct from command line)
- In Windows Defender go to Settings->Real-time protection
- Check off "Turn on real-time protection"
现在再次运行升级.它将成功完成.升级完成后,再次打开实时保护.
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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!