One of the two will be used. Which one is undefined.

报错

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

1、配置环境变量

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_151.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

plan A
配置Intellij Idea
1.打开idea.properties文件
help->edit custom properties
添加一句:

idea.no.launcher=true

2、重启idea

plan B
如果修改Idea配置不生效的话

在Finder 的应用程序中找到IDEA的图标,右键,显式包内容,contents-》bin里面

目录
/Applications/Android Studio.app/Contents/bin/idea.properties
添加
idea.no.launcher=true

重启

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容