Java – Android studio on MAC: unable to find system compiler

When I tried to compile Hello world, I got this on one of my Macs

On my other Mac, I don't have any problems. As far as I know, the settings are the same. Just for some reason, Android studio / gradle pops up this error message on one machine

I've set

Run / usr / libexec / Java_ Home gives:

Run javac - version to give:

Running Java - version gives:

In Android studio, I set file - > other settings – > default project settings – > JDK location to the JDK location listed above

I have no choice. Why do I still receive this message?

Thank you for your help. I've wasted hours

resolvent:

I found that the same error is due to the conflict of Java jar files, which has nothing to do with Android studio installation, especially tools.jar and auskey.jar under / library / Java / extensions. More information here

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>