android studio报错 ':app:mergeDebugResources'.
PHP中文网
PHP中文网 2017-04-17 17:32:02
0
4
593

在导入了图片资源了之后,一运行发现报错Error:Execution failed for task ':app:mergeDebugResources'.

Some file crunching failed, see logs for details

于是乎按照网上给出的解决方法重新编译一遍项目,发现又报R文件丢失错误。请问这个应该怎么办呢??求指导

PHP中文网
PHP中文网

认证0级讲师

reply all(4)
洪涛

1. The R file is lost because of the resource naming problem. Check your naming.
2. Change the buildTools setting-projectStructure-Modules-Build Tools Version

伊谢尔伦

Looking at the error log will explain in detail which file error occurred.

Peter_Zhu

It may be a class conflict in the file, or multiple jars with the same name

巴扎黑

1、gradle clean
2、gradle build --stacktrace

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template