1.先進(jìn)入/Users/用戶名/Library/Application Support/JetBrains/IntelliJIdea2021.1目錄
2.找到idea.jdk文件
3.編輯idea.jdk,將/Library/Java/JavaVirtualMachines/jdk1.8.0_311.jdk改為/Library/Java/JavaVirtualMachines/zulu-11.jdk警绩,重新打開(kāi)Idea就可以了扣典,目前這個(gè)只對(duì)M1版本的Idea并且修改過(guò)JDK版本才有效