Execution failed for task ':app:processDebugResources' after cleaning project

前端 未结 7 2312
有刺的猬
有刺的猬 2021-02-14 20:42

The error I\'ve been getting is this:

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task \':app:processDebugResource         


        
7条回答
  •  旧巷少年郎
    2021-02-14 21:06

    90% possible your problem from xml files

    Check following things in your xml

    • Goto xml -> find (ctrl +f)-> search "@string/" -> check all strings are valid
    • do samething for "@drawable/" & "@color/"

    In my case I missed some drawables & colors and some strings not mapping

    String not mapping issue

    ex: "@string/password" "password" string available in my strings.xml but when I click (ctrl +click) not open in strings.xml

    I hardcode the not mapped strings.. problem fixed

提交回复
热议问题