1
下我下載的理念EAP 2017.3終極的Mac OS,用捆綁的JRE。如何設置理念Mac系統
一旦我克隆我的gradle這個項目,我試圖同步,但它抱怨,有沒有項目SDK。
我試圖/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home
下加捆綁的JRE,但它總是抱怨它不是一個有效的JDK家。
所以,我下載的JRE 9和安裝。
補充說,隨着項目的SDK,現在我得到這樣的:
The newly created daemon process has a different context than expected.
It won't be possible to reconnect to this daemon. Context mismatch:
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home,daemonRegistryDir=/Users/loredanasoetta/.gradle/daemon,pid=421,idleTimeout=null,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IT,-Duser.language=en,-Duser.variant]
Actual: DefaultDaemonContext[uid=d56a6606-9df7-4dbb-b269-96531b5ba6f9,javaHome=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home,daemonRegistryDir=/Users/loredanasoetta/.gradle/daemon,pid=481,idleTimeout=10800000,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=IT,-Duser.language=en,-Duser.variant]
1)爲什麼要捆綁的JRE沒有得到認可?
2)我看到一些人在gradle-wrapper.properties
org.gradle.java.home=/Library...
明確聲明jdk的路徑來解決,但是這是廢話,因爲它會在回購推,而且僅針對的有效我
在Mac OS上,哪種方法是正確的?