在Android studio 或者intellij idea中新创建一个项目或者打开一个存在的项目时,有时候会出现Error:The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: /Users/guoliuya/Desktop/tools/android-sdk-macosx/bin/java这个错误,解决办法就是打开设置,选择gradle 选项,改变当前gradle jvm 的路径,当前的路径我的idea里的是

