所有的额外功能都是升级,当我运行构建项目时,它给我这个错误:
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\java\jdk-19\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
我使用的是Visual Studio代码和Android Studio的模拟器。
不要在环境变量路径中添加 java.exe。用垃圾桶结束它。
例如,“C:\Program Files\java\jdk-19\bin”。就是这样。