Cannot use @TaskAction annotation on method TransformTask.transform() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
解决办法:
将gradle版本改成7.3.3
下载地址:https://services.gradle.org/distributions/