安装 Canary 7 后无法打开 Android studio 4.2 Canary 8 或 9 [英] Cannot open Android studio 4.2 Canary 8 or 9 after having installed Canary 7

查看:24
本文介绍了安装 Canary 7 后无法打开 Android studio 4.2 Canary 8 或 9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文:
macOS Catalina 10.15.6
Java 1.8.0_161

Context :
macOs Catalina 10.15.6
Java 1.8.0_161

将 Android Studio 4.2 Canary 7 更新为 Canary 8(以及 Canary 9)后,无法再打开.

After having updated Android Studio 4.2 Canary 7 to Canary 8 (and to Canary 9), it cannot be opened any more.

我已经尝试从 Android Studio 官方网站和 JetBrains 的 Toolbox 应用程序安装它.在任何情况下都会发生相同的行为:
尝试启动 Android Studio 时没有任何反应.它甚至不显示SplashScreen"东西.

I've tried installing it from both Android Studio official website and from JetBrains' Toolbox app. In any case the same behavior occurs :
When trying to launch Android Studio nothing happens. It doesn't even show the "SplashScreen" thing.

当使用命令行启动应用程序时,我有一个可能有用的错误:

When using command line to launch the app I have an error that may be useful :

> open [...]/Android\ Studio\ 4.2\ Preview.app

LSOpenURLsWithRole() failed with error -10810 for the file [...]/Android Studio 4.2 Preview.app.

我在 Internet 上看到这可能意味着该应用没有启动的适当权限.使用以前版本的 Android Studio Canary,我从未更改任何权限,为什么现在?

I've seen on the internet that it may mean that the app haven't the appropriate permissions to be launched. With previous versions of Android Studio canary, i've never changed any permissions so why now ?

推荐答案

当直接启动 [...]/Android Studio 4.2 Preview.app/Contents/MacOs/studio 我有以下输出:

When launching directly [...]/Android Studio 4.2 Preview.app/Contents/MacOs/studio I have the following output :

2020-09-03 14:09:02.078 studio[4589:59392] allVms required 1.8*,1.8+
2020-09-03 14:09:02.078 studio[4589:59392] Can't find bundled java.The folder doesn't exist: /Applications/Android Studio 4.2 Preview.app/Contents/jbr
2020-09-03 14:09:02.078 studio[4589:59392] Can't find bundled java.The folder doesn't exist: /Applications/Android Studio 4.2 Preview.app/Contents/jdk
2020-09-03 14:09:02.082 studio[4589:59397] WorkingDirectory is absent in Info.plist. Current Directory: /Applications
2020-09-03 14:09:02.082 studio[4589:59397] fullFileName is: /Applications/Android Studio 4.2 Preview.app/Contents/bin/studio.vmoptions
2020-09-03 14:09:02.082 studio[4589:59397] fullFileName exists: /Applications/Android Studio 4.2 Preview.app/Contents/bin/studio.vmoptions
2020-09-03 14:09:02.083 studio[4589:59397] Value of STUDIO_VM_OPTIONS is (null)
2020-09-03 14:09:02.083 studio[4589:59397] Processing VMOptions file at /Applications/Android Studio 4.2 Preview.app/Contents/bin/studio.vmoptions
2020-09-03 14:09:02.083 studio[4589:59397] Done
2020-09-03 14:09:02.083 studio[4589:59397] Processing VMOptions file at /Users/myUser/Library/Application Support/Google/AndroidStudioPreview4.2/studio.vmoptions
2020-09-03 14:09:02.083 studio[4589:59397] Done
2020-09-03 14:09:02.083 studio[4589:59397] Processing VMOptions file at
2020-09-03 14:09:02.084 studio[4589:59397] No content found
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error occurred during initialization of VM
Multiple garbage collectors selected

我想在这里强调的那一行是

The line i want to highlight here is

2020-09-03 14:09:02.083 studio[4589:59397] Processing VMOptions file at /Users/myUser/Library/Application Support/Google/AndroidStudioPreview4.2/studio.vmoptions

删除该文件后,可以打开新版本的金丝雀!

After having removed that file, the new version of canary can be opened !

我猜这个文件有问题阻止了迁移

I guess there is something wrong in this file that prevents the migration

这篇关于安装 Canary 7 后无法打开 Android studio 4.2 Canary 8 或 9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆