Skip to content

Errors swallowed by Android Studio with androidx and databinding #700

@giniedp

Description

@giniedp

Not sure where to file this issue but i thought to start here.

Using Android Studio 3.3.1 with androidx, databinding enabled, AutoValue and Glide i faced the Error

cannot find symbol DataBindingComponent

it was all over the place of all generated databinding classes. Also there were Glide errors but i was already used to know that they are always present, if the project does not compile. However, there were no AutoValue errors present.

Now if i declare an empty interface for the DataBindingComponent to make the data binding compiler happy the root error from AutoValue gets revealed

error: Parameter type java.lang.Boolean of setter method should be boolean to match getter

fixing that and then removing the dummy interface i am happy to be able to compile the project again. The sad thing is, whenever i introduce an AutoValue error i have to repeat the process.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions