问题:
之前装的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加上了,导致现在无法启动。如下图
- 解决
- 打开终端--进入/Users/ethan/Library/Application Support/JetBrains/IntelliJIdea(对应版本)--vim idea.vmoptions--删除之前配置的Javaagent行--wq
- 重启启动