Cannot use @TaskAction annotation on method TransformTask.transform()

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

下载地址:Gradle Distributions

Cannot use @TaskAction annotation on method TransformTask.transform()_第1张图片

Cannot use @TaskAction annotation on method TransformTask.transform()_第2张图片 

Cannot use @TaskAction annotation on method TransformTask.transform()_第3张图片 

Cannot use @TaskAction annotation on method TransformTask.transform()_第4张图片 

 

你可能感兴趣的:(gradle,android,studio,android)