You should not alter gradle.properties manually. Try setting your JAVA_HOME in ~/.zshrc to something like- export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home" then relaunch a terminal session