解决MAC IDEA 中libinstrument.dylib (0x1053dc4e0). One of the two will be used. Which one is undefined
解决方案1:【可用】
# custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true
解决方案2:
右键项目 -> open module settings -> Project
在project jdk上edit,然后选一个最新的jdk即可
MAC配置环境变量
参考:https://www.jianshu.com/p/1e1185dc22bd
touch .bash_profile
open .bash_profile
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH:
export JAVA_HOME
export CLASSPATH
export PATH
source .bash_profile
作者: 伊甸一点