Android Could not create task ‘:app:processDebugResources‘.

Android Could not create task ‘:app:processDebugResources‘.

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.

出现这个的原因是 当前项目使用的android studio 换成了一个旧版本的Android studio

路径:gradle\wrapper\gradle-wrapper.properties

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists


//修改文件
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/d5c8040868.html