1. ”Execution failed for task ':app:mergeDebugResources“
背景:旧工程启用 Databinding
异常信息:
line 1:38 extraneous input '\r' expecting {COMMENT, SEA_WS, '<', PI}
Caused by: java.lang.ArrayIndexOutOfBoundsException
处理方式:文件的右下角,CR格式的为在mac系统下的格式,CRLF为在Windows下的格式
背景:旧工程启用 Databinding
异常信息:
android.databinding.tool.processing.ScopedException: [databinding]
{"msg":"layout file should\u0027ve changed \\01_Projects\\layout\\item_meal_selected.xml",
"file":"D:\\01_Projects\\layout\\item_meal_selected.xml","pos":[]}
处理方式:修改XMl文件编码格式,由UTF-8-BOM 改为 UTF-8