[英]Execution failed for task ':app:mergeDebugResources' & Build errors
In every project I'm getting same following error 在每个项目中,我都会收到以下相同的错误
Information:Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources] Error:Execution failed for task ':app:mergeDebugResources'.
信息:Gradle任务[干净,:app:generateDebugSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources]错误:任务':app:mergeDebugResources'执行失败。 Error: Some file crunching failed, see logs for details Error:Some file crunching failed, see logs for details Information:BUILD FAILED
错误:某些文件处理失败,请参阅日志以获取详细信息错误:某些文件处理失败,请参阅日志以获取详细信息:已失败
Even if I'm creating new project, without adding anything I'm getting above error, also getting an 即使我正在创建新项目,而没有添加任何内容,但我都得到了超过错误的提示,
Cannot resolve symbol 'R'
无法解析符号“ R”
in every project. 在每个项目中。
单击Build
-> Clean Project
,这将执行gradle清理
Please check any resource file is missing or not. 请检查是否缺少任何资源文件。
Otherwise go to Build
in the top menu and click on Clean Project
. 否则,请转到顶部菜单中的“
Build
,然后单击“ Clean Project
。
If this also not works then restart Android Studio
. 如果这也行不通,请重新启动
Android Studio
。
Sometimes this error comes due to the path of the project file. 有时,此错误是由于项目文件的路径引起的。
Try relocating your project with short path address and then try to build the project. 尝试使用短路径地址重新定位您的项目,然后尝试构建该项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.