Everywhere I reference one of my projects custom styles in a layout I get this syntax error about extraneous input. syntax error
The style still gets applied to the layout correctly and the project builds without any issues but these errors are shown everywhere a style is referenced and I’m not sure why. Also, when attempting to find all references to specific styles, none of them show that they are being used in the any layout files, but I know they are.
This is where my styles are located: themes.xml
and here is an example of one of the styles located in the themes.xml file: style example
I know that styles used to be put in the file called styles.xml, and that the new way is to use themes.xml, so my best guess is that the issue is related to this change but I’m not completely sure. Even the google documentation here https://developer.android.com/develop/ui/views/theming/themes still says to use the styles.xml file.
Harley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.