I'm trying to use notifyDataSetChanged() to update an adapter that inherits the BaseQuickAdapter class, but it says "Cannot resolve method 'notifyDataSetChanged' in 'DeviceAdapter'", then I open the BaseQuickAdapter.java file and it says "Library source does not match the bytecode for class BaseQuickAdapter" here is my code
public class DeviceAdapter extends BaseQuickAdapter<BluetoothDevice, BaseViewHolder> {
public DeviceAdapter(int layoutResId, @Nullable List<BluetoothDevice> data) {
super(layoutResId, data);
}
...
public void changeBondDevice() {
notifyDataSetChanged();
}
}
enter image description here enter image description here
Anyone know what might be going on here?