Skip to content

Resource declarations can't be parsed if there's a dot in the name #511

@RBusarow

Description

@RBusarow

example:

<resources>
  <style name="AppTheme.ClearActionBar" parent="Theme.AppCompat.Light.DarkActionBar"/>
</resources>

This yields the error:

Execution failed for task ':moduleCheckAuto'.
> The name `R.style.AppTheme.ClearActionBar` must follow the format `R.<prefix>.<identifier>`, such as `R.string.app_name`.

The actual generated resource is R.style.AppTheme_ClearActionBar. There are no capitalization changes.

I just need to replace any '.' in the name attribute with '_'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions