出现 Could not create task ‘:app:processDebugResources’. Cannot use @TaskAction annotation on method IncrementalTask.taskA
出现
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的项目中
来源地址:https://blog.csdn.net/qq_36535153/article/details/131232115
--结束END--
本文标题: Android :app:processDebugResources 错误
本文链接: https://www.lsjlt.com/news/374298.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0