简体   繁体   中英

Gradle build failing at the very start of my project

Gradle sync failed: The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe

To be straight, Gradle is failing to build my project at the very start of creating the project. It's not even showing any signs of gradle building. The window is not showing much details to decribe the error, but down it there is the caption "Gradle sync failed: The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe"

Anyone with a solution to this?

If you are trying to run application with Android Studio please look at your gradle settings.

I suppose you need to change Gradle JVM to point to the actual JDK.
Go to the settings and then search "Gradle"

在此处输入图像描述

Okay guys, I've got a solution to this question. But i recomend that you also help me with a solution on jitsi problem that am facing. I have a description here: jitsi problem here

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