Android :app:processDebugResources error

出现
Could not create task ‘:app:processDebugResources’.
Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

The reason for this is that I switched from the latest version of android studio to an older version of Android studio

Solution:
Modify distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip
in gradle/wrapper/gradle-wrapper.properties

What I modified here is
distributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip

My idea to solve this problem is to copy the configuration content from a project that can normally sync with Gradle to a project that cannot sync normally

Guess you like

Origin blog.csdn.net/qq_36535153/article/details/131232115