简体   繁体   English

Gradle 构建在我的项目一开始就失败了

[英]Gradle build failing at the very start of my project

Gradle sync failed: The supplied javaHome seems to be invalid. Gradle 同步失败:提供的 javaHome 似乎无效。 I cannot find the java executable.我找不到 java 可执行文件。 Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe试过位置: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.坦率地说,Gradle 在创建项目的一开始就无法构建我的项目。 It's not even showing any signs of gradle building.它甚至没有显示任何 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"该窗口没有显示太多描述错误的详细信息,但在它下面有标题“Gradle 同步失败:提供的 javaHome 似乎无效。我找不到 java 可执行文件。尝试过的位置: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.如果您尝试使用 Android Studio 运行应用程序,请查看您的 gradle 设置。

I suppose you need to change Gradle JVM to point to the actual JDK.我想您需要更改 Gradle JVM 以指向实际的 JDK。
Go to the settings and then search "Gradle"转到设置,然后搜索“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.但我建议你也帮我解决我面临的 jitsi 问题。 I have a description here: jitsi problem here我在这里有一个描述: jitsi problem here

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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