当前位置:   article > 正文

【Android Studio】在Mac中更换JDK Location_mac 更换android studio 默认jdk版本

mac 更换android studio 默认jdk版本

先查看Mac中已经装了哪些JDK

输入:/usr/libexec/java_home -V 
得到:
Matching Java Virtual Machines (3):
    18.0.1.1 (x86_64) "Oracle Corporation" - "OpenJDK 18.0.1.1" /Users/dingjing/Library/Java/JavaVirtualMachines/openjdk-18.0.1.1/Contents/Home
    11.0.2 (x86_64) "Oracle Corporation" - "Java SE 11.0.2" /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home
    1.8.0_332 (x86_64) "Amazon" - "Amazon Corretto 8" /Users/dingjing/Library/Java/JavaVirtualMachines/corretto-1.8.0_332/Contents/Home
/Users/dingjing/Library/Java/JavaVirtualMachines/openjdk-18.0.1.1/Contents/Home
dingjing@dingjingdeMacBook-Pro ~ % 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

如果在AS中想使用11.0.2,就把11.0.2对应的版本号填在AS的Project Structure的JDK Location处。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/817208
推荐阅读
相关标签
  

闽ICP备14008679号