Process 'command 'C:\zssinstallsoft\Android\sdk\build-tools\27.0.1\aapt.exe'' finished with non-zero

Process ‘command ‘C:\zssinstallsoft\Android\sdk\build-tools\27.0.1\aapt.exe’’ finished with non-zero

原因:
AGPBI: {“kind”:“error”,“text”:“No resource found that matches the given name (at \u0027background\u0027 with value \u0027@color/color_border\u0027).”,“sources”:[{“file”:“D:\androidStudioProject\zhtc\sfy\SmartParking.TollCollector\app\src\main\res\layout\activity_back_fee.xml”,“position”:{“startLine”:40,“startColumn”:28,“startOffset”:1320,“endColumn”:47,“endOffset”:1339}}],“original”:"",“tool”:“AAPT”}

找不到资源id

解决方法:
可能命名不规范导致资源R文件无法自动生成,检查xml文件。

你可能感兴趣的:(android)