最近我从我的电脑上卸载了所有JDK并安装了新的JDK。但我的Android Studio现在还没有建立。并显示以下错误。
Error:The newly created daemon process has a different context than expected.
Java home is different.
Expecting: 'C:\Program Files\Android\Android Studio\jre' but was: 'C:\Program Files\Java\jdk1.8.0_121'.
Please configure the JDK to match the expected one.
但在我的android工作室中,JDK路径设置为C:\Program Files\Android\Android Studio\jre
。但是没有工作。
答案 0 :(得分:0)
经过这么多尝试后,我终于通过卸载JDK并从我的计算机安装最新版本来解决了这个问题。并将JAVA_HOME设置为最新版本的JDK。