某次启动idea的时候看到控制台提示如下错误 : 

objc[11289]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x101d564c0) 
and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x101de64e0). One of the two will be used. Which one is undefined.

一番google后, 找到答案 :

1.close the project in intelliJ
2.File -> New -> project from existing resources
3.use Import from external model (if any)
4.open the project again.

目前发现其实是因为机器上新装了一个JDK, 导致之前项目设置的JDK "人格分裂"

右键项目 -> open module settings -> Project

在project jdk上edit,然后选一个最新的jdk即可

相关文章:

  • 2021-07-03
  • 2022-01-21
  • 2021-05-02
  • 2021-06-17
  • 2021-06-22
  • 2021-07-17
猜你喜欢
  • 2021-11-06
  • 2021-09-12
  • 2021-09-28
  • 2021-04-13
  • 2022-01-23
  • 2022-12-23
  • 2021-12-17
相关资源
相似解决方案