本文介绍: 我解决这个问题的思路是 从一个正常能Gradle sync的项目中 拷贝这些配置内容到不能正常 sync的项目中。出现这个的原因是 我从最新版的android studio 换成了一个旧版本的Android studio。修改 gradle/wrapper/gradle–wrapper.properties。
出现
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的项目中
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。