I tried to do a Gradle sync after the Android Studio upgrade and the following message
Value '/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)
is shown in the build fail window.