1 打release包时 minifyEnabled 和 shrinkResources 都开启时 报如下错误:
1 : app\build\intermediates\res\resources-lemon_wap-LemonReader-stripped.ap_' specified for property 'resourceFile' does not exist
2 :Xml parsing errors; 前言中不允许有内容:igonring
相关日志:Failed to shrink resources: org.xml.sax.SAXParseException; lineNumber: 1; co
Line 1 in XML document from class path resource [bean.xml] is invalid; nested exception is org.xml.sax.SAXParseException;
解决办法:1 检测所有新加的xml头部是否添加了
<?xml version="1.0" encoding="utf-8"?>
2 <?xml version="1.0" encoding="utf-8"?> 前是否有空格