Android Studio(1.5.1至2.1.2)无法应用补丁(FileNotFoundException)

编程入门 行业动态 更新时间:2024-10-12 03:28:06
本文介绍了Android Studio(1.5.1至2.1.2)无法应用补丁(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(或者,您可以检查此链接如何直接从命令行运行它)
  • 在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)

    本文发布于:2023-11-25 09:33:07,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1629234.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:补丁   Studio   Android   FileNotFoundException

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!