【发布时间】:2021-12-13 17:49:19
【问题描述】:
我正在使用 Gradle 构建一个颤振项目。我跑的时候
flutter build appbundle
我得到了如下所示的错误
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':image_gallery_saver:compileReleaseKotlin'.
> Kotlin could not find the required JDK tools in the Java installation '/Library/Internet
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home' used by Gradle. Make
sure Gradle is running on a JDK, not JRE.
* 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
BUILD FAILED in 24s
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... Done
25.7s Gradle task bundleRelease failed with exit code 1
请帮助我解决这个问题。
提前致谢!
【问题讨论】:
标签: android flutter gradle flutter-dependencies