简体   繁体   中英

Gradle error on eclipse 2020-12 : Task:compileJava FAILED Unrecognized option : -h

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.

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