0

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?

luffy
  • 1
  • 1
  • 1
    Does this answer your question? [Library source does not match the bytecode for class](https://stackoverflow.com/questions/36753524/library-source-does-not-match-the-bytecode-for-class) – Elias May 10 '22 at 09:37

0 Answers0