When I lunch my Gradle build scripts I get the following error:
Task:compileJava FAILED Unrecognized option: -h
.
I tried to fix that by setting up eclipse to use a specific Gradle Version
Yet when I do that my Gradle tasks fail to load altogether
Please note that the build used to go through on the former version of eclipse, yet I had to use the latest version since I updated my OS to Mac Big Sur
I resolved it by adding
options.headerOutputDirectory.convention(null)
to compileJava
Gradle task
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.