FAILURE:任务“:app:processDebugResources”执行失败

Posted

技术标签:

【中文标题】FAILURE:任务“:app:processDebugResources”执行失败【英文标题】:FAILURE: Execution failed for task ':app:processDebugResources' 【发布时间】:2021-04-28 17:26:24 【问题描述】:

我在运行应用程序(flutter run)时收到此错误

event sent after app closed: id: 0, progressId: null, message: Running "flutter pub get" in de_p_city_guide...
event sent after app closed: id: 0, progressId: null, finished: true
Launching lib\main.dart on Nokia 5 3 in debug mode...
Running Gradle task 'assembleDebug'...
Plugin project :firebase_core_web not found. Please update settings.gradle.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Path 'D:\Lets_Go\de_p_city_guide\build\screen\intermediates\compiled_local_resources\debug\out' is not a readable directory.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 53s
Exception: Gradle task assembleDebug failed with exit code 1

我试过但没用的解决方案:

颤抖干净

文件 > 使缓存无效/重新启动...

将 (org.gradle.jvmargs=-Xmx4608m) 添加到 gradle.properties

添加到 android/app/build.gradle:

机器人 aaptOptions.cruncherEnabled = 假 aaptOptions.useNewCruncher = false

我从 .../User/.gradle/cashes 中删除了我的现金数据

我删除了 .gradle 并重建了项目

任何帮助请在这里

【问题讨论】:

【参考方案1】:

错误

Plugin project :firebase_core_web not found. Please update settings.gradle.

解决方案here。

【讨论】:

之前用这个note运行过,不影响, ***.com/questions/60483656/… 我做到了,我删除了 .gradle 并重建了项目,但它没有工作

以上是关于FAILURE:任务“:app:processDebugResources”执行失败的主要内容,如果未能解决你的问题,请参考以下文章

ionic build android failure - 任务 processDebugResources 执行失败

错误:(gcloud.app.deploy)错误响应:[9] Cloud build XXXXXXXXXXXX 状态:FAILURE

FAILURE:构建失败,出现异常 flutter error 。帮我

尝试将 IDEA 连接到 Jira 时出现“handshake_failure”错误

DTExec:包执行在SSIS包执行中返回DTSER_FAILURE(1)

运行ntpdate报错:Temporary failure in name resolution