Android :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
里的
distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip

我这里修改的是为
distributionUrl=https://services.gradle.org/distributions/gradle-7.3.3-bin.zip

我解决这个问题的思路是 从一个正常能Gradle sync的项目中 拷贝这些配置内容到不能正常 sync的项目中

猜你喜欢

转载自blog.csdn.net/qq_36535153/article/details/131232115
今日推荐