arekolek
03/12/2020, 4:30 PMviewBinding
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:
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`:
@NonNull
public static SomeLayoutBinding bind(@NonNull View rootView) {
Am I missing something here? Anybody else has this issue? Where would I even report it?Mark
03/13/2020, 2:43 AMarekolek
03/13/2020, 10:07 AM