google / google/auto

Errors swallowed by Android Studio with androidx and databinding

Open
#700 1 comment 0 reactions 0 assignees View on GitHub
Component: value P3
Dominant language
Java
Stars
10.6k
Forks
1.2k
Avg merge
6h 32m
Merged PRs (30d)
13

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.