简体   繁体   中英

Gradle sync failed on Android studio after windows 10 update

I have a problem. After update my windows 10, gradle sync failed on android studio 3.0. I use gradle 4.5. Error message:

The newly created daemon process has a different context than expected. Java home is different. Expecting: 'C:\\android-studio\\jre' but was: 'C:\\Program Files\\Java\\jre1.8.0_74'. Please configure the JDK to match the expected one.

I run"studio64.exe". I try to add java.home to gradl.properties but it dosen't work. It's wierd because before update averythink was ok...

It seems your Android studio and JAVA_HOME environment variable refers to different directories. Check if these to values are same and they should refer to jdk path not jre.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM