【发布时间】:2022-08-24 21:03:53
【问题描述】:
Launching lib\\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task \'assembleDebug\'...
FAILURE: Build failed with an exception.
* What went wrong:
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
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Exception: Gradle task assembleDebug failed with exit code 1
安卓工作室版本:
Android Studio 电鳗 | 2022.1.1 金丝雀 9 构建 #AI-221.5921.22.2211.8881706,构建于 2022 年 7 月 29 日运行时版本:11.0.13+0-b1751.21-8125866 amd64 VM:JetBrains s.r.o 的 OpenJDK 64 位服务器 VM。