search

Home  >  Q&A  >  body text

android studio报错 ':app:mergeDebugResources'.

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

Some file crunching failed, see logs for details

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

PHP中文网PHP中文网2887 days ago639

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:34:02

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:34:02

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

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:34:02

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

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:34:02

    1、gradle clean
    2、gradle build --stacktrace

    reply
    0
  • Cancelreply