I enabled the `viewBinding` in Android Studio 3.6....
# android
a
I enabled the
viewBinding
in Android Studio 3.6.1, with Gradle 6.2.2, Android Gradle plugin 3.6.1 and Kotlin Gradle plugin 1.3.70. This code:
Copy code
val binding = SomeLayoutBinding.bind(itemView)
produces this warning in the IDE:
Declaration has type inferred from a platform call, which can lead to unchecked nullability issues. Specify type explicitly as nullable or non-nullable.
Even though, when I open the generated
SomeLayoutBinding.java
file, I see that it's annotated with `@NonNull`:
Copy code
@NonNull
  public static SomeLayoutBinding bind(@NonNull View rootView) {
Am I missing something here? Anybody else has this issue? Where would I even report it?
m
Check for existing issues and report here: https://issuetracker.google.com/issues?q=viewbinding
­čĹŹ 1
a