Fork me on GitHub

IDEA中Which one is undefined问题

解决MAC IDEA 中libinstrument.dylib (0x1053dc4e0). One of the two will be used. Which one is undefined

 

解决方案1:【可用】

参考:https://blog.csdn.net/liuCoding/article/details/109803612

# custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true

解决方案2:

参考:https://www.cnblogs.com/taojintianxia/p/8399246.html

右键项目 -> 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

posted @ 2022-12-19 16:40  伊甸一点  阅读(287)  评论(0编辑  收藏  举报