報錯 Cannot find a setter for <android.widget.TextView android:text> that accepts parameter type ‘?‘

在使用 dataBinding 的過程中,使用 ObservableList 或者 ObservableMap 類型的變量給 TextView 設置 text 時報錯: Cannot find a setter for <android.widget.TextView android:text> that accepts parameter type '?' 聲明如下圖所示: 原因是聲明 Obse
相關文章
相關標籤/搜索