Android Could not create task ‘:app:processDebugResources‘.

慈云数据 7个月前 (05-09) 技术支持 52 0

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
微信扫一扫加客服

微信扫一扫加客服

点击启动AI问答
Draggable Icon