one, illegal characters: ' \ufeff '
prompt when importing a project into Studio Error: Illegal character: ' \ufeff ' , the compiler did not error, but the compilation error, more headaches, and later found that the reason is because there is no use UTF-8 No BOM mode , Open the file with notepad++ or another editor and change the format to resolve it:
note: eclipse can intelligently convert a BOM file to a BOM-free file, and Andorid Studio is not working on it at this time. The following is also simple to say what is the BOM (B yte-order Mark ), which can be understood as byte order tag , is the name of the Uniform Code character located at the code point U+feff. When UTF-16 or UTF-32 is used to encode a string of ucs/Uniform code characters, this character is applied to indicate its byte order. It is often used as a notation for marking documents encoded in UTF-8, UTF-16, or UTF-32. The popular point is understood as http://www.unicode.org/faq/utf_bom.html#bom
Second, Gradle cannot automatically find XML custom attribute problems
Gradle does not automatically find custom properties when a layout XML file appears:
In Gradle projects, always use Http://schemas.android.com/apk/res-auto for custom attributes
custom properties < Span style= "color: #3333ff;" >http://schemas.android.com/apk/res/ http://schemas.android.com/apk/res-auto > you can. example:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Studio Error: Illegal characters: ' \ufeff ' and Gradle cannot automatically find XML custom attributes