安装 Canary 7 后无法打开 Android studio 4.2 Canary 8 或 9

Cannot open Android studio 4.2 Canary 8 or 9 after having installed Canary 7

上下文:
macOs Catalina 10.15.6
Java1.8.0_161

将AndroidStudio 4.2 Canary 7更新到Canary 8(以及Canary 9)后,无法再打开。

我试过从 Android Studio 官方网站和 JetBrains 的工具箱应用程序安装它。在任何情况下都会发生相同的行为:
尝试启动 Android Studio 时没有任何反应。它甚至不显示“SplashScreen”这个东西。

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

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

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

我在网上看到这可能意味着该应用程序没有适当的权限来启动。对于以前版本的 Android Studio Canary,我从未更改过任何权限,所以为什么现在呢?

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

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

我想在这里强调的是

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

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

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

就我而言,我已经隔离了几个 studio.vmoptions 值,如果保留这些值,将阻止任何版本 >= Android Studio 4.2 canary 8 启动。

-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=85
-XX:+UseCMSInitiatingOccupancyOnly
-Xloggc:gc.log

如果我删除所有这些,它会正常打开。如果我离开其中任何一个,它都不会打开。

我遇到了同样的问题,我 通过为应用程序提供一个“jbr”文件夹来解决我的方法。

它曾经抱怨过,一个 error/warning(如原始问题中所述)是:

Can't find bundled java.The folder doesn't exist: /Applications/Android Studio Preview.app/Contents/jbr

所以我进入 /Applications/Android Studio Preview.app/Contents 并将 jre 文件夹复制到 jbr 一个...

cd /Applications/Android\ Studio\ Preview.app/Contents
cp -r jre jbr

我不明白为什么这个预览版会在没有它应该需要的工具的情况下打包,但是,好吧,它可以工作。