解决Mac下安装新版本IDEA无法启动

问题:

之前装的IDEA 2019.1.1版本,然后修改了idea.vmoptions,添加了jetbrains-agent.jar,后来更新卸载了2019.1.1版本,安装新版本2020.1,启动一直闪退,启动不了,查询了很多解决方法,好像都不适合么有解决,后面结合大神给的方法,查到自己的问题。

解决办法:

1)先查看日志提示:

应用程序--找到idea--右击显示包内容--Contents--MacOS--打开idea

2020-12-26 12:06:40.275 idea[2687:95642] allVms required 1.8*,1.8+

2020-12-26 12:06:40.277 idea[2687:95646] Current Directory: /Users/ethan

2020-12-26 12:06:40.277 idea[2687:95646] Value of IDEA_VM_OPTIONS is (null)

2020-12-26 12:06:40.277 idea[2687:95646] Processing VMOptions file at /Users/****/Library/Application Support/JetBrains/IntelliJIdea2020.1/idea.vmoptions

2020-12-26 12:06:40.278 idea[2687:95646] Done

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Error opening zip file or JAR manifest missing : /Applications/IntelliJ\ IDEA.app/Contents/bin/jetbrains-agent.jar

Error occurred during initialization of VM

agent library failed to init: instrument

logout

加黑部分提示是:jetbrains-agent.jar的问题,之前确实修改了idea.vmoptions加上了,导致现在无法启动。如下图

截屏2020-12-26 下午12.10.04.png

解决

打开终端--进入/Users/ethan/Library/Application Support/JetBrains/IntelliJIdea(对应版本)--vim idea.vmoptions--删除之前配置的Javaagent行--wq

重启启动

作者:Ethan文

链接:https://www.jianshu.com/p/bb295cd630f0

来源:

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

你可能感兴趣的:(解决Mac下安装新版本IDEA无法启动)