Hello all,
My developers updated their Android projects from gradle:7.6.4 to gradle:8.0.0 and now all my builds fail.
The error is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':address-selection'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:84)
Caused by: org.gradle.api.internal.tasks.DefaultTaskContainer$TaskCreationException: Could not create task ':address-selection:dataBindingGenBaseClassesDevDebug'.
Caused by: org.gradle.api.GradleException: 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.
I could not found what should i do to fix those issues…
Can anybody help me?
Well, such things happen if you don’t fix deprecation warnings before upgrading to the next major version. IncrementalTaskInputs was deprecated in Gradle 7 and removed in Gradle 8.
As dataBindingGenBaseClassesDevDebug is probably coming from the Android Gradle Plugin, you probably use a version that is not compatible with Gradle 8.