英文:
Android Studio java.io.IOException - Update from Electric Eel | 2022.1.1 Patch 2 -> Flamingo | 2022.2.1
问题
当我尝试将我的Android Studio从Electric Eel升级到Flamingo时,在下载更新后,重新启动Android Studio以安装此更新时,我收到了以下错误:
错误信息如下:
java.io.IOException: An absolute link: /Applications/Android Studio.app/Contents/jbr/JavaAppletPlugin.plugin -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
我还尝试了以下解决方案,但没有解决我的问题:
图片链接如下:
英文:
When I tried to update my Android Studio from Electric Eel to Flamingo, after downloading update, and restart android studio for installing this update I got this Error:
and this is a stored LOG:
17/04 11:36:12 INFO Runner.initLogger - --- Updater started ---
17/04 11:36:12 INFO Runner._main - args: [install, /Applications/Android Studio.app/Contents]
17/04 11:36:12 INFO Runner._main - destination: /Applications/Android Studio.app/Contents (/Applications/Android Studio.app/Contents), case-sensitive: false
17/04 11:36:14 INFO Utils.getTempFile - created a working directory: /Users/<usr>/Library/Caches/Google/AndroidStudio2022.1/tmp/patch-update/idea.updater.files.12145042962668282155
17/04 11:36:14 INFO Runner.install - Extracting patch file...
17/04 11:36:14 INFO Utils.getZipEntry - entryPath: patch-file.zip
17/04 11:36:16 INFO Utils.getZipEntry - entryPath: .patch-info
17/04 11:36:16 INFO PatchFileCreator.prepareAndValidate - Electric Eel | 2022.1.1 Patch 2 -> Flamingo | 2022.2.1
17/04 11:36:16 INFO Patch.forEach - Validating installation... [5271 actions]
17/04 11:36:16 ERROR Runner.install - prepare failed
java.io.IOException: An absolute link: /Applications/Android Studio.app/Contents/jbr/JavaAppletPlugin.plugin -> /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
at com.intellij.updater.Digester.digestRegularFile(Digester.java:50)
at com.intellij.updater.Patch.digestFile(Patch.java:450)
at com.intellij.updater.DeleteAction.validate(DeleteAction.java:42)
at com.intellij.updater.Patch.lambda$validate$0(Patch.java:292)
at com.intellij.updater.Patch.forEach(Patch.java:438)
at com.intellij.updater.Patch.validate(Patch.java:291)
at com.intellij.updater.PatchFileCreator.prepareAndValidate(PatchFileCreator.java:109)
at com.intellij.updater.Runner.install(Runner.java:413)
at com.intellij.updater.Runner._main(Runner.java:221)
at com.intellij.updater.Runner.main(Runner.java:49)
17/04 11:36:32 INFO Runner.cleanup - Cleaning up...
17/04 11:36:32 INFO Utils.tryDelete - deleted: /Users/<usr>/Library/Caches/Google/AndroidStudio2022.1/tmp/patch-update/idea.updater.files.12145042962668282155/patch.tmp.0
17/04 11:36:32 INFO Utils.tryDelete - deleted: /Users/<usr>/Library/Caches/Google/AndroidStudio2022.1/tmp/patch-update/idea.updater.files.12145042962668282155
17/04 11:36:32 INFO Utils.cleanup - deleted a working directory: /Users/<usr>/Library/Caches/Google/AndroidStudio2022.1/tmp/patch-update/idea.updater.files.12145042962668282155
17/04 11:36:32 INFO Runner.refreshApplicationIcon - refreshApplicationIcon for: /Applications/Android Studio.app
also I tried this solution:
https://stackoverflow.com/a/68575967/9133703
but it is not fixed my problem
/Applications/Android Studio.app/Contents
/Applications/Android Studio.app/Contents/jbr
/Applications/Android Studio.app/Contents/jre
/Library/Internet Plug-Ins
答案1
得分: 2
在我尝试删除/Applications/Android Studio.app/Contents/jre
和/Applications/Android Studio.app/Contents/jbr
中的JavaAppletPlugin.plugin
链接之后,问题得以解决。
英文:
After I tried to delete both
JavaAppletPlugin.plugin
links
from
/Applications/Android Studio.app/Contents/jre
and
/Applications/Android Studio.app/Contents/jbr
the problem fixed.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论