我在android项目中使用这个库,但使用https://github.com/igalata/Bubble-Picker/错误

获得Exception

 item.setBackgroundImage(ContextCompat.getDrawable(MainActivity.this, images.getResourceId(0, 0))); of type PickerItem which takes a drawable parameter- 

java.lang.ClassCastException:android.graphics.drawable.VectorDrawable无法转换为android.graphics.drawable.BitmapDrawable

 BubblePicker bubblePicker; bubblePicker = findViewById(R.id.picker); bubblePicker.setAdapter(new BubblePickerAdapter() { @Override public int getTotalCount() { return titles.length; } @NotNull @Override public PickerItem getItem(int position) { PickerItem item = new PickerItem(); item.setTitle(titles[position]); item.setGradient(new BubbleGradient(colors.getColor((position * 2) % 8, 0),colors.getColor((position * 2) % 8 + 1, 0), BubbleGradient.VERTICAL)); item.setTypeface(mediumTypeface); item.setTextColor(ContextCompat.getColor(MainActivity.this, android.R.color.white)); item.setBackgroundImage(ContextCompat.getDrawable(MainActivity.this, images.getResourceId(position,0))); return item; } });