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

猜你喜欢

转载自blog.csdn.net/qq_61104892/article/details/132893491