扑动运行时出现:app:processDebugResources的一些未知错误 [英] Getting some unknown error of :app:processDebugResources while flutter run
问题描述
今天,当我运行Flutter项目时,遇到了一些未知错误,根据我的研究,该解决方案不可用.请告诉我您是否知道如何解决.在今天之前,我没有收到这样的错误.为什么只在今天发生.是由于Gradle更新吗?Gradle更新是自动的吗?请解决我的问题.
Today when I was running my Flutter project I got some unknown error and its solution is not available according to my research. Please tell me if you know how to solve it. Before Today, I was not getting any error like this. Why it happened today only. Is it due to Gradle update? Is Gradle update is automatic? Please solve my queries.
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
> java.nio.file.NoSuchFileException: D:\Projects\Flutter Zone\CovidTraces\build\path_provider\intermediates\res\symbol-table-with-package\debug\package-aware-r.txt
* 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 3m 28s
Exception: Gradle task assembleDebug failed with exit code 1
谢谢:}
推荐答案
我将给出一些可以尝试的指针,然后检查它是否可以正常工作.我希望这些选择对您有用.只需一个接一个地检查,然后检查哪一个效果最好.
I am going to give out certain pointers which you can try and then check it if it works correctly. I am hoping that, the options will work out for you. Just go one by one, and check which one works the best.
我将指出正常解决方案格式的最佳解决方案.所以保持跟踪
I am going to point out the best solution to normal solution format. So keep a track
1.更改课程路径
-
将
org.gradle.jvmargs = -Xmx1536m
更改为org.gradle.jvmargs = -Xmx1536m -Duser.country = US -Duser.language = zh-CN
将 classpath'com.android.tools.build:gradle:3.5.0'
更改为 classpath'com.android.tools.build:gradle:3.4.2'
关注此了解更多信息
2.或只需执行此操作
- 将
classpath'com.android.tools.build:gradle:3.5.0'
更改为classpath'com.android.tools.build:gradle:3.4.2'
3.删除向量资产
- 通过删除该矢量资产文件来解决.请检查您最近是否对矢量资产文件进行了任何更改.
4.软件包缓存修复
-
干净整洁
-
flutter pub缓存修复
-
颤动运行
这篇关于扑动运行时出现:app:processDebugResources的一些未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!