gpt4 book ai didi

android - 更新 Android Studio 时出错

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:23:16 24 4
gpt4 key购买 nike

当我尝试更新我的 Android Sudio 时,我收到这条消息:

Temp. directory: C:\Users\Rick\AppData\Local\Temp\

+----------------
| A file operation failed.
| This might be due to a file being locked by another
| application. Please try closing any application
| that uses the files being updated then press 'Retry'.
+----------------


com.intellij.updater.RetryException: Cannot delete file C:\Users\Rick\AppData\Local\Android\android-studio\plugins\gradle\lib\gradle-tooling-extension-impl.jar
at com.intellij.updater.BaseUpdateAction.replaceUpdated(BaseUpdateAction.java:40)
at com.intellij.updater.UpdateZipAction.doApply(UpdateZipAction.java:199)
at com.intellij.updater.PatchAction.apply(PatchAction.java:140)
at com.intellij.updater.Patch$3.forEach(Patch.java:198)
at com.intellij.updater.Patch.forEach(Patch.java:248)
at com.intellij.updater.Patch.apply(Patch.java:194)
at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:86)
at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:77)
at com.intellij.updater.Runner.doInstallImpl(Runner.java:307)
at com.intellij.updater.Runner.doInstall(Runner.java:268)
at com.intellij.updater.Runner.access$000(Runner.java:18)
at com.intellij.updater.Runner$2.execute(Runner.java:258)
at com.intellij.updater.SwingUpdaterUI$7.run(SwingUpdaterUI.java:230)
at java.lang.Thread.run(Thread.java:745)

最佳答案

文件 Android\android-studio\plugins\gradle\lib\gradle-tooling-extension-impl.jar 可能被一些 JVM 进程使用(显示为 java.exe 在任务管理器中)。

对我有用的解决方案是关闭更新程序并关闭任务管理器中的所有 java.exe 进程,然后打开 Android Studio 并再次尝试更新。这次更新应该一直进行下去。

关于android - 更新 Android Studio 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26029115/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com