代码如下
movieinfo = new ArrayList<>();
AVQuery query = new AVQuery<>("MovieInfo");
query.findInBackground(new FindCallback() {
@Override
public void done(List list, AVException e) {
for (AVObject avObject:list){
String moviename = (String) avObject.get("MovieName");
String movieprice = (String) avObject.get("MoviePrice");
MovieInfoBean movieInfoBean = new MovieInfoBean(moviename,movieprice);
movieinfo.add(movieInfoBean);
adapter.notifyDataSetChanged();
}
}
});
在new FindCallback()行报错
错误: 不兼容的类型: <匿名FindCallback>无法转换为AVUser
该怎么解决这个错误