79453415

Date: 2025-02-20 05:30:38
Score: 1
Natty:
Report link

i have faced same error with this Could not create task ':app:compileDebugKotlin'. Cannot use @TaskAction annotation on method AbstractKotlinCompile.execute() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

dependencies {
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22" 
    // Use thelatest stable version
}

distributionUrl=https://services.gradle.org/distributions/gradle8.5all.zip

classpath 'com.android.tools.build:gradle:8.2.0'
     // Use the latest AGP version
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @TaskAction
  • Low reputation (1):
Posted by: Balaji Nammalvar