Execution failed for task ':app:mergeDebugResources'. Error: Duplicate resources

1.錯誤描述

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> [drawable/ic_menu_manage] E:\...\app\src\main\res\drawable\ic_menu_manage.xml  

   [drawable/ic_menu_manage] E:\...\app\src\main\res\values\drawables.xml: Error: Duplicate resources
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

2.錯誤原因

drawable中的多個資源文件名稱名字一樣造成的;

3.解決方案

根據代碼引用修改名字;

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章