Android Studio – > Could not create task ':app:compileDebugKotlin'. > Could not create task ':app:dataBindingGenBaseClassesDebug'
When i build the app i got error > Could not create task ':app:compileDebugKotlin'. > Could not create task ':app:dataBindingGenBaseClassesDebug'. > Cannot use @TaskAction annotation on method DataBindingGenBaseClassesTask.writeBaseClasses() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.