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.解決方案
根據代碼引用修改名字;