Unable to migrate to gradle 8.x

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.

Ahmm thank you Björn
I have checked the deprecated ones using --scan, and i “disable” to update.
My agp it is 7.2.2. i will try to update.

If I update project and AGP i got
Caused by: java.lang.IllegalStateException: Failed to parse package id

No idea, I’m not into Android development.
I guess you need to check AGP upgrade notes or ask in some Android community.

Here is when I migrated my project to Gradle 8. Maybe it helps you.