google / auto

A collection of source code generators for Java.
Apache License 2.0
10.42k stars 1.2k forks source link

Errors swallowed by Android Studio with androidx and databinding #700

Open giniedp opened 5 years ago

giniedp commented 5 years ago

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.

pmouraac commented 5 years ago

I am also facing problems with AndroidX + DataBinding + AutoValue (v1.6.2).

"cannot find symbol DataBindingComponent"

It just works with AutoValue until 1.5.6 version.