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文章来源地址https://www.toymoban.com/news/detail-736926.html
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://www.toymoban.com/news/detail-736926.html
到了这里,关于Android Could not create task ‘:app:processDebugResources‘.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!